1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibGL: Improve constants and types compatibility

When compiling with SDL_opengl, all kinds of differences between LibGL
and OpenGL constants and types popped up as redefinition warnings and
errors.

This fixes all LibGL-related warnings when compiling PrBoom+ :^)
This commit is contained in:
Jelle Raaijmakers 2022-09-01 13:27:11 +02:00 committed by Andreas Kling
parent 4d090487ac
commit f08411ba3f
5 changed files with 58 additions and 53 deletions

View file

@ -354,7 +354,7 @@ void glFinish()
g_gl_context->gl_finish();
}
void glFogfv(GLenum pname, GLfloat* params)
void glFogfv(GLenum pname, GLfloat const* params)
{
g_gl_context->gl_fogfv(pname, params);
}
@ -444,7 +444,7 @@ void glGetMaterialiv(GLenum face, GLenum pname, GLint* params)
g_gl_context->gl_get_material(face, pname, params, GL_INT);
}
GLubyte* glGetString(GLenum name)
GLubyte const* glGetString(GLenum name)
{
return g_gl_context->gl_get_string(name);
}