Fix GL_COMPRESSED_TEXTURE_FORMATS query in null context
authorPyry Haulos <phaulos@google.com>
Thu, 21 Jan 2016 00:23:00 +0000 (16:23 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 21 Jan 2016 00:23:00 +0000 (16:23 -0800)
Change-Id: I376262d594e080de8a03c2bc1f248ce374066f3f

framework/platform/null/tcuNullRenderContext.cpp

index b91d2ee..61b6640 100644 (file)
@@ -361,7 +361,7 @@ GLW_APICALL void GLW_APIENTRY glGetIntegerv (GLenum pname, GLint* params)
                        break;
 
                case GL_COMPRESSED_TEXTURE_FORMATS:
-                       deMemcpy(params, &ctx->compressedTextureList[0], (int)ctx->compressedTextureList.size());
+                       deMemcpy(params, &ctx->compressedTextureList[0], ctx->compressedTextureList.size()*sizeof(deUint32));
                        break;
 
                case GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: