diff options
author | 2011-01-13 19:52:45 +0000 | |
---|---|---|
committer | 2011-01-13 19:52:45 +0000 | |
commit | 8531c1cea2a9cf7702ef314ccd0a6cd1dd33c76c (patch) | |
tree | c760b89996fbc0c43eee1e100dcfee1a66ec4418 /gpu/src/GrGLTexture.cpp | |
parent | a76de3d1a92134c3e95ad7fce99234f92fa48268 (diff) |
Towards issue #106
Adds notion of texture multiple stages but currently just uses 1.
git-svn-id: http://skia.googlecode.com/svn/trunk@694 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLTexture.cpp')
-rw-r--r-- | gpu/src/GrGLTexture.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/src/GrGLTexture.cpp b/gpu/src/GrGLTexture.cpp index 4e9d9223de..9460086fe2 100644 --- a/gpu/src/GrGLTexture.cpp +++ b/gpu/src/GrGLTexture.cpp @@ -144,6 +144,9 @@ void GrGLTexture::uploadTextureData(uint32_t x, uint32_t width, uint32_t height, const void* srcData) { + + fGpuGL->setSpareTextureUnit(); + // glCompressedTexSubImage2D doesn't support any formats // (at least without extensions) GrAssert(fUploadFormat != GR_PALETTE8_RGBA8); @@ -152,7 +155,6 @@ void GrGLTexture::uploadTextureData(uint32_t x, // then we have to modify this code to flip the srcData GrAssert(kTopDown_Orientation == fOrientation); GR_GL(BindTexture(GL_TEXTURE_2D, fTextureID)); - fGpuGL->notifyTextureBind(this); GR_GL(PixelStorei(GL_UNPACK_ALIGNMENT, fUploadByteCount)); GR_GL(TexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, fUploadFormat, fUploadType, srcData)); |