mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 06:20:43 +09:00
Dont use glGetTexLevelParameteriv, it's only available in opengl es 3.1
This commit is contained in:
@@ -20,6 +20,8 @@ int window_texture_init(WindowTexture *window_texture, Display *display, Window
|
||||
window_texture->texture_id = 0;
|
||||
window_texture->redirected = 0;
|
||||
window_texture->egl = egl;
|
||||
window_texture->window_width = 0;
|
||||
window_texture->window_height = 0;
|
||||
|
||||
if(!x11_supports_composite_named_window_pixmap(display))
|
||||
return 1;
|
||||
@@ -67,6 +69,11 @@ int window_texture_on_resize(WindowTexture *self) {
|
||||
EGL_NONE,
|
||||
};
|
||||
|
||||
Window root_window;
|
||||
int window_x, window_y;
|
||||
unsigned int window_border, window_depth;
|
||||
XGetGeometry(self->display, self->window, &root_window, &window_x, &window_y, &self->window_width, &self->window_height, &window_border, &window_depth);
|
||||
|
||||
pixmap = XCompositeNameWindowPixmap(self->display, self->window);
|
||||
if(!pixmap) {
|
||||
result = 2;
|
||||
|
||||
Reference in New Issue
Block a user