mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[egl] cleanup texture API
This commit is contained in:
@@ -282,19 +282,17 @@ bool egl_render(void * opaque, SDL_Window * window)
|
||||
if (this->sourceChanged)
|
||||
{
|
||||
this->sourceChanged = false;
|
||||
egl_texture_init_streaming(
|
||||
if (!egl_texture_init_streaming(
|
||||
this->textures.desktop,
|
||||
this->format.width,
|
||||
this->format.height,
|
||||
this->frameSize
|
||||
);
|
||||
))
|
||||
return false;
|
||||
}
|
||||
|
||||
egl_texture_stream_buffer(
|
||||
this->textures.desktop,
|
||||
this->data,
|
||||
this->frameSize
|
||||
);
|
||||
if (!egl_texture_stream_buffer(this->textures.desktop, this->data))
|
||||
return false;
|
||||
|
||||
this->update = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user