Skip to content

Commit

Permalink
Fixed EGL incorrectly being passed the anti-aliasing level as EGL_SAM…
Browse files Browse the repository at this point in the history
…PLE_BUFFERS instead of EGL_SAMPLES. Fixes SFML#1533.
  • Loading branch information
binary1248 authored and Unarelith committed May 28, 2020
1 parent fe937b8 commit 760c82e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SFML/Window/EglContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ EGLConfig EglContext::getBestConfig(EGLDisplay display, unsigned int bitsPerPixe
EGL_BUFFER_SIZE, static_cast<EGLint>(bitsPerPixel),
EGL_DEPTH_SIZE, static_cast<EGLint>(settings.depthBits),
EGL_STENCIL_SIZE, static_cast<EGLint>(settings.stencilBits),
EGL_SAMPLE_BUFFERS, static_cast<EGLint>(settings.antialiasingLevel),
EGL_SAMPLE_BUFFERS, static_cast<EGLint>(settings.antialiasingLevel ? 1 : 0),
EGL_SAMPLES, static_cast<EGLint>(settings.antialiasingLevel),
EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PBUFFER_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
EGL_NONE
Expand Down

0 comments on commit 760c82e

Please sign in to comment.