From 0323b94d8f17b167b3b2742c866fea6eff934741 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Wed, 20 Jan 2016 16:23:00 -0800 Subject: [PATCH] Fix GL_COMPRESSED_TEXTURE_FORMATS query in null context Change-Id: I376262d594e080de8a03c2bc1f248ce374066f3f --- framework/platform/null/tcuNullRenderContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/platform/null/tcuNullRenderContext.cpp b/framework/platform/null/tcuNullRenderContext.cpp index b91d2ee..61b6640 100644 --- a/framework/platform/null/tcuNullRenderContext.cpp +++ b/framework/platform/null/tcuNullRenderContext.cpp @@ -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: -- 2.7.4