provisional hardcoded values until we can fix in gldc

This commit is contained in:
psxdev 2024-02-04 17:26:52 +01:00
parent 4d90c7beff
commit 8e68a98a6b

View File

@ -1873,8 +1873,12 @@ void rlEnablePointMode(void)
#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33)
// NOTE: glPolygonMode() not available on OpenGL ES
glPolygonMode(GL_FRONT_AND_BACK, GL_POINT);
#if defined(PLATFORM_DREAMCAST) //fix needed on gldc by now hardcoded here to avoid compiling errors
glEnable(0x8642/*GL_PROGRAM_POINT_SIZE*/);
#else
glEnable(GL_PROGRAM_POINT_SIZE);
#endif
#endif
}
// Disable wire mode
void rlDisableWireMode(void)
@ -1892,7 +1896,11 @@ void rlSetLineWidth(float width) { glLineWidth(width); }
float rlGetLineWidth(void)
{
float width = 0;
#if defined(PLATFORM_DREAMCAST) //fix needed on gldc by now hardcoded here to avoid compiling errors
glGetFloatv(0x0B21/*GL_LINE_WIDTH*/);
#else
glGetFloatv(GL_LINE_WIDTH, &width);
#endif
return width;
}