1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

Ports+LibGL: Replace LibGL context check by ScummVM patch

According to the OpenGL spec, invoking functions without an active
context results in undefined behavior. Since ScummVM seems to be the
only port having issues with our behavior, patch their code instead.
This commit is contained in:
Jelle Raaijmakers 2022-01-12 13:47:25 +01:00 committed by Andreas Kling
parent 3cbf20ca5d
commit a4e2d93aa2
3 changed files with 30 additions and 12 deletions

View file

@ -67,7 +67,6 @@ void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
GLenum glGetError()
{
VERIFY_CURRENT_CONTEXT_OR_VALUE(GL_NONE);
return g_gl_context->gl_get_error();
}
@ -118,7 +117,6 @@ void glGetFloatv(GLenum pname, GLfloat* params)
void glGetIntegerv(GLenum pname, GLint* data)
{
VERIFY_CURRENT_CONTEXT();
g_gl_context->gl_get_integerv(pname, data);
}