{
verifyMessage(m_lastMessage, source, type);
m_lastMessage = MessageData();
+
+ // Reset error so that code afterwards doesn't break because of lingering error state
+ m_context.getRenderContext().getFunctions().getError();
}
void CallbackErrorCase::callback (GLenum source, GLenum type, GLuint id, GLenum severity, const string& message)
log << TestLog::Message << "Driver says: \"" << lastMsg.message << "\"" << TestLog::EndMessage;
verifyMessage(lastMsg, source, type);
+
+ // Reset error so that code afterwards doesn't break because of lingering error state
+ m_context.getRenderContext().getFunctions().getError();
}
// Generate errors, verify that calling glGetError afterwards produces desired result