Don't do line smoothing in OpenGLES

This commit is contained in:
Jeffery Myers 2020-12-12 10:26:30 -08:00
parent 4ebfee7b9d
commit 72d9054239

View File

@ -1500,13 +1500,17 @@ float rlGetLineWidth(void)
// Enable line aliasing // Enable line aliasing
void rlEnableSmoothLines(void) void rlEnableSmoothLines(void)
{ {
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_21) || defined(GRAPHICS_API_OPENGL_11)
glEnable(GL_LINE_SMOOTH); glEnable(GL_LINE_SMOOTH);
#endif
} }
// Disable line aliasing // Disable line aliasing
void rlDisableSmoothLines(void) void rlDisableSmoothLines(void)
{ {
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_21) || defined(GRAPHICS_API_OPENGL_11)
glDisable(GL_LINE_SMOOTH); glDisable(GL_LINE_SMOOTH);
#endif
} }
// Unload framebuffer from GPU memory // Unload framebuffer from GPU memory