Fix typo in framebuffer_srgb_unsupported_enum am: b46d559e07 am: ca35ff2dec
authorPyry Haulos <phaulos@google.com>
Wed, 12 Jul 2017 17:26:57 +0000 (17:26 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Wed, 12 Jul 2017 17:26:57 +0000 (17:26 +0000)
am: d1399f7f2c

Change-Id: I1464f20c06b756681f745f774d9bdfd6092490e4

modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp

index 57f39d2..b4ebcac 100644 (file)
@@ -1814,13 +1814,11 @@ bool FboSRGBUnsupportedEnumCase::isInvalidEnum (std::string functionName)
 
        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;
        }