mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
gl: allow for high resolution EAGLLayer's
This commit is contained in:
parent
b8b87694a1
commit
ef71c5a29d
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ draw_cb (gpointer data)
|
|||
eagl_layer = (CAEAGLLayer *)[GS_GL_WINDOW_EAGL_VIEW(window_eagl) layer];
|
||||
size = eagl_layer.frame.size;
|
||||
|
||||
size = CGSizeMake (size.width * eagl_layer.contentsScale, size.height * eagl_layer.contentsScale);
|
||||
|
||||
if (window->queue_resize || window_eagl->priv->window_width != size.width ||
|
||||
window_eagl->priv->window_height != size.height) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue