Permalink
Browse files

Use saved texture information and FBOs to access texture contents.

  • Loading branch information...
1 parent c04b835 commit 7a60f1144f59dee5d163324e6012a807de73eb13 @afrantzis afrantzis committed with George Wright Nov 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 glstate.cpp
View
@@ -682,7 +682,7 @@ dumpTextureImage(JSONWriter &json, GLenum target, GLint level, TextureInfo &info
resetPixelPackState();
- getTexImage(target, level, info, false, pixels);
+ getTexImage(target, level, info, true, pixels);
restorePixelPackState();
@@ -713,7 +713,7 @@ dumpTexture(JSONWriter &json, GLenum target, GLenum binding)
do {
TextureInfo info;
- getTextureInfo(target, level, false, info);
+ getTextureInfo(target, level, true, info);
if (!info.width || !info.height) {
break;
}

0 comments on commit 7a60f11

Please sign in to comment.