fix egl config

This commit is contained in:
vaxerski 2023-04-19 20:52:35 +01:00
parent d14442fd7f
commit 5b1ea68164

View File

@ -132,8 +132,8 @@ void CWaylandOpenGLDriver::initEGL() {
EGL_RED_SIZE, 1, EGL_RED_SIZE, 1,
EGL_GREEN_SIZE, 1, EGL_GREEN_SIZE, 1,
EGL_BLUE_SIZE, 1, EGL_BLUE_SIZE, 1,
EGL_ALPHA_SIZE, 1, EGL_SAMPLES, 4,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT,
EGL_NONE, EGL_NONE,
}; };
if (!eglChooseConfig(eglContext.display, CONFIG_ATTRIBUTES, &eglContext.config, 1, &matchedConfigs)) { if (!eglChooseConfig(eglContext.display, CONFIG_ATTRIBUTES, &eglContext.config, 1, &matchedConfigs)) {
@ -328,6 +328,8 @@ void CWaylandOpenGLDriver::swapBuffers () {
wl_surface_set_buffer_scale(waylandContext.layerSurface.surface, 1); wl_surface_set_buffer_scale(waylandContext.layerSurface.surface, 1);
wl_surface_damage_buffer(waylandContext.layerSurface.surface, 0, 0, INT32_MAX, INT32_MAX); wl_surface_damage_buffer(waylandContext.layerSurface.surface, 0, 0, INT32_MAX, INT32_MAX);
wl_surface_commit(waylandContext.layerSurface.surface); wl_surface_commit(waylandContext.layerSurface.surface);
m_frameCounter++;
} }
uint32_t CWaylandOpenGLDriver::getFrameCounter () const { uint32_t CWaylandOpenGLDriver::getFrameCounter () const {