diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 116: Fix compilation warning/error about uninitialized variables.

Message ID 20110802160323.31633.51054.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org Aug. 2, 2011, 4:03 p.m. UTC
------------------------------------------------------------
revno: 116
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Tue 2011-08-02 17:01:29 +0100
message:
  Fix compilation warning/error about uninitialized variables.
modified:
  src/scene-effect-2d.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/scene-effect-2d.cpp'
--- src/scene-effect-2d.cpp	2011-08-02 14:28:18 +0000
+++ src/scene-effect-2d.cpp	2011-08-02 16:01:29 +0000
@@ -310,8 +310,8 @@ 
     static const std::string vtx_shader_filename(GLMARK_DATA_PATH"/shaders/effect-2d.vert");
 
     std::vector<float> kernel;
-    unsigned int kernel_width;
-    unsigned int kernel_height;
+    unsigned int kernel_width = 0;
+    unsigned int kernel_height = 0;
 
     /* Parse the kernel matrix from the options */
     if (!parse_matrix(mOptions["kernel"].value, kernel,