This commit is contained in:
TheBrokenRail 2024-06-18 18:03:02 -04:00
parent a830f66c41
commit 57df81e425
3 changed files with 5 additions and 15 deletions

View File

@ -1,7 +1,4 @@
project(gles-compatibility-layer)
# GLES Compatibility Layer
set(GLES_COMPATIBILITY_LAYER_USE_ES3 FALSE CACHE BOOL "" FORCE)
set(GLES_COMPATIBILITY_LAYER_USE_SDL FALSE CACHE BOOL "" FORCE)
set(GLES_COMPATIBILITY_LAYER_DEPENDENCY glfw CACHE STRING "" FORCE)
add_subdirectory(src)

@ -1 +1 @@
Subproject commit 3ee682f6f26dd4344f0701ae346d10250c040d8e
Subproject commit 539774351723333d1248f8ab8461e07ffd1e06e3

View File

@ -546,8 +546,7 @@ static int get_glGetFloatv_params_size(GLenum pname) {
case GL_PROJECTION_MATRIX: {
return 16;
}
case GL_ALIASED_LINE_WIDTH_RANGE:
case GL_SMOOTH_LINE_WIDTH_RANGE: {
case GL_ALIASED_LINE_WIDTH_RANGE: {
return 2;
}
default: {
@ -660,17 +659,11 @@ CALL(56, glViewport, void, (GLint x, GLint y, GLsizei width, GLsizei height))
#endif
}
CALL(57, glNormal3f, void, (GLfloat nx, GLfloat ny, GLfloat nz))
#ifdef MEDIA_LAYER_TRAMPOLINE_GUEST
trampoline(true, nx, ny, nz);
#else
GLfloat nx = args.next<GLfloat>();
GLfloat ny = args.next<GLfloat>();
GLfloat nz = args.next<GLfloat>();
func(nx, ny, nz);
return 0;
#endif
void glNormal3f(__attribute__((unused)) GLfloat nx, __attribute__((unused)) GLfloat ny, __attribute__((unused)) GLfloat nz) {
// Do Nothing
}
#endif
CALL(58, glIsEnabled, GLboolean, (GLenum cap))
#ifdef MEDIA_LAYER_TRAMPOLINE_GUEST