Skip to content

Commit

Permalink
glEnable(GL_MULTISAMPLE) commented out for OpenGL ES
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jul 6, 2024
1 parent 19b3bfa commit 851f9d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ namespace HelloImGui { namespace BackendApi

if (effectiveSamples > 0)
{
glEnable(GL_MULTISAMPLE);
#if ! defined(__EMSCRIPTEN__) && ! defined(HELLOIMGUI_USE_GLES3) && ! defined(HELLOIMGUI_USE_GLES2)
glEnable(GL_MULTISAMPLE); // multisampling is automatically enabled if the framebuffer supports it for for OpenGL ES
#endif
glfwWindowHint(GLFW_SAMPLES, effectiveSamples);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ namespace HelloImGui { namespace BackendApi
{
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, effectiveSamples);
#ifndef __EMSCRIPTEN__
glEnable(GL_MULTISAMPLE);
#if ! defined(__EMSCRIPTEN__) && ! defined(HELLOIMGUI_USE_GLES3) && ! defined(HELLOIMGUI_USE_GLES2)
glEnable(GL_MULTISAMPLE); // multisampling is automatically enabled if the framebuffer supports it for OpenGL ES
#endif
}
else
Expand Down

0 comments on commit 851f9d5

Please sign in to comment.