summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 05:08:39 +0000
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 05:08:39 +0000
commit46c867553727c843ff03ef4620beabe99deb1db8 (patch)
tree4aef89538f30bffa03084ebc7dd34b1c3d4350c0 /gpu
parentb7f64d741a98f1a70e1b6886466478b2ef02debf (diff)
downloadchromium_src-46c867553727c843ff03ef4620beabe99deb1db8.zip
chromium_src-46c867553727c843ff03ef4620beabe99deb1db8.tar.gz
chromium_src-46c867553727c843ff03ef4620beabe99deb1db8.tar.bz2
gpu: Fix range[2] initializion lists
BUG=none Review URL: https://chromiumcodereview.appspot.com/13050003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc4
-rw-r--r--gpu/command_buffer/tests/gl_pointcoord_unittest.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index d7665f9..b2aa5a1 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2506,7 +2506,7 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
resources.MaxDrawBuffers = group_->max_draw_buffers();
#if (ANGLE_SH_VERSION >= 110)
- GLint range[2];
+ GLint range[2] = { 0, 0 };
GLint precision = 0;
GetShaderPrecisionFormatImpl(GL_FRAGMENT_SHADER, GL_HIGH_FLOAT,
range, &precision);
@@ -8549,7 +8549,7 @@ error::Error GLES2DecoderImpl::HandleGetShaderPrecisionFormat(
result->success = 1; // true
- GLint range[2] = {0, 0};
+ GLint range[2] = { 0, 0 };
GLint precision = 0;
GetShaderPrecisionFormatImpl(shader_type, precision_type, range, &precision);
diff --git a/gpu/command_buffer/tests/gl_pointcoord_unittest.cc b/gpu/command_buffer/tests/gl_pointcoord_unittest.cc
index 5073ad3..fe71eed 100644
--- a/gpu/command_buffer/tests/gl_pointcoord_unittest.cc
+++ b/gpu/command_buffer/tests/gl_pointcoord_unittest.cc
@@ -101,7 +101,7 @@ TEST_F(PointCoordTest, MAYBE_RenderTo) {
GLint position_loc = glGetAttribLocation(program, "a_position");
GLint pointsize_loc = glGetUniformLocation(program, "u_pointsize");
- GLint range[2] = { 0, };
+ GLint range[2] = { 0, 0 };
glGetIntegerv(GL_ALIASED_POINT_SIZE_RANGE, &range[0]);
GLint max_point_size = range[1];
EXPECT_GE(max_point_size, 1);