Test case was not assigning gl.getError() return value into a variable
causing tests to always fail on implementations that don't support ES3.2
or GL_EXT_sRGB_write_control.
Affects:
dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum
Change-Id: Iafc38b8152f3371ce8c016c4f70feb2bb4604c69
log << tcu::TestLog::Message << "Checking call to " << functionName << tcu::TestLog::EndMessage;
- std::ostringstream message;
- gl.getError();
+ error = gl.getError();
if (error != GL_INVALID_ENUM)
{
- message << functionName << " returned wrong value [" << glu::getErrorStr(error) << ", expected " << glu::getErrorStr(GL_INVALID_ENUM) << "]";
- log << tcu::TestLog::Message << message.str() << tcu::TestLog::EndMessage;
+ log << tcu::TestLog::Message << " returned wrong value [" << glu::getErrorStr(error) << ", expected " << glu::getErrorStr(GL_INVALID_ENUM) << "]" << tcu::TestLog::EndMessage;
isOk = false;
}