Change black to 0,0,0,1 instead of 0,0,0,0.003921
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/2469003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48671 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 7a9d35f..033a819b 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -1110,7 +1110,7 @@
// Which textures are bound to texture units through glActiveTexture.
scoped_array<TextureUnit> texture_units_;
- // Black (0,0,0,0) textures for when non-renderable textures are used.
+ // Black (0,0,0,1) textures for when non-renderable textures are used.
// NOTE: There is no corresponding TextureInfo for these textures.
// TextureInfos are only for textures the client side can access.
GLuint black_2d_texture_id_;
@@ -1471,7 +1471,7 @@
// Make black textures for replacing non-renderable textures.
black_2d_texture_id_ = ids[0];
black_cube_texture_id_ = ids[1];
- static int8 black[] = {0, 0, 0, 1};
+ static uint8 black[] = {0, 0, 0, 255};
glBindTexture(GL_TEXTURE_2D, black_2d_texture_id_);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA,
GL_UNSIGNED_BYTE, black);