summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramarinichev@chromium.org <amarinichev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 18:08:13 +0000
committeramarinichev@chromium.org <amarinichev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 18:08:13 +0000
commit217829dd9788ddfedb85ba33cbfa1b261e75e434 (patch)
tree1aac497d90e0169f3b809628bfc737440517e32f
parentd4adc298c7b9a2883dcefeccd67dbb102afe7b2b (diff)
downloadchromium_src-217829dd9788ddfedb85ba33cbfa1b261e75e434.zip
chromium_src-217829dd9788ddfedb85ba33cbfa1b261e75e434.tar.gz
chromium_src-217829dd9788ddfedb85ba33cbfa1b261e75e434.tar.bz2
Use the correct target when binding a cubemap texture.
Review URL: http://codereview.chromium.org/1530042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44665 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--o3d/core/cross/gles2/texture_gles2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/o3d/core/cross/gles2/texture_gles2.cc b/o3d/core/cross/gles2/texture_gles2.cc
index ef37c2e..dcb652d 100644
--- a/o3d/core/cross/gles2/texture_gles2.cc
+++ b/o3d/core/cross/gles2/texture_gles2.cc
@@ -806,7 +806,7 @@ void TextureCUBEGLES2::SetRect(TextureCUBE::CubeFace face,
} else {
// TODO(gman): Should this bind be using a FACE id?
renderer_->MakeCurrentLazy();
- glBindTexture(GL_TEXTURE_2D, gl_texture_);
+ glBindTexture(GL_TEXTURE_CUBE_MAP, gl_texture_);
GLenum gl_internal_format = 0;
GLenum gl_data_type = 0;
GLenum gl_format = GLFormatFromO3DFormat(format(), &gl_internal_format,