diff --git a/test_conformance/gl/test_images_write_common.cpp b/test_conformance/gl/test_images_write_common.cpp index cd48df47..9bbb257b 100644 --- a/test_conformance/gl/test_images_write_common.cpp +++ b/test_conformance/gl/test_images_write_common.cpp @@ -763,16 +763,16 @@ int test_images_write_common(cl_device_id device, cl_context context, get_base_gl_target(targets[ tidx ]) == GL_TEXTURE_2D_MULTISAMPLE_ARRAY) { bool supports_msaa; - error = supportsMsaa(context, &supports_msaa); - if( error != 0 ) return error; + int errorInGetInfo = supportsMsaa(context, &supports_msaa); + if (errorInGetInfo != 0) return errorInGetInfo; if (!supports_msaa) return 0; } if (formats[ fidx ].formattype == GL_DEPTH_COMPONENT || formats[ fidx ].formattype == GL_DEPTH_STENCIL) { bool supports_depth; - error = supportsDepth(context, &supports_depth); - if( error != 0 ) return error; + int errorInGetInfo = supportsDepth(context, &supports_depth); + if (errorInGetInfo != 0) return errorInGetInfo; if (!supports_depth) return 0; } #endif