mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
fix egl config
This commit is contained in:
parent
d14442fd7f
commit
5b1ea68164
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user