mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Fixed EGL incorrectly being passed the anti-aliasing level as EGL_SAMPLE_BUFFERS instead of EGL_SAMPLES. Fixes #1533.
This commit is contained in:
parent
db80f6a60f
commit
04131e1607
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user