diff options
author | Vladislav Andresov <v.andresov@partner.samsung.com> | 2018-06-18 22:55:58 +0300 |
---|---|---|
committer | Vladislav Andresov <v.andresov@partner.samsung.com> | 2018-06-27 18:09:26 +0300 |
commit | cdac3d6f415e99d96c984f525b480b130d4fc0ae (patch) | |
tree | bac359fdcae25e9866459eadfe158209e69472d3 | |
parent | 981aad592220254aafc44830730a579349cabf25 (diff) | |
download | emulator-yagl-cdac3d6f415e99d96c984f525b480b130d4fc0ae.tar.gz emulator-yagl-cdac3d6f415e99d96c984f525b480b130d4fc0ae.tar.bz2 emulator-yagl-cdac3d6f415e99d96c984f525b480b130d4fc0ae.zip |
Add fixes for video360 issue
- set internal format GL_RGBA as default
for texture images;
- fix creating of dummy VIGS surfaces while
eglCreatePbufferSurface is called with zero sizes.
Change-Id: Ic08c464fc010b9b01a5b893f392d589b531bb4bf
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
-rw-r--r-- | EGL/yagl_onscreen_surface.c | 8 | ||||
-rw-r--r-- | GLES_common/yagl_gles_texture.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/EGL/yagl_onscreen_surface.c b/EGL/yagl_onscreen_surface.c index e1a3612..042a766 100644 --- a/EGL/yagl_onscreen_surface.c +++ b/EGL/yagl_onscreen_surface.c @@ -438,6 +438,14 @@ struct yagl_onscreen_surface } } + /* + * VIGS driver is unable to handle dummy surfaces + */ + + if (width * height == 0) { + width = height = 1; + } + sfc->tmp_pixmap = dpy->native_dpy->create_pixmap(dpy->native_dpy, width, height, diff --git a/GLES_common/yagl_gles_texture.c b/GLES_common/yagl_gles_texture.c index 19382f4..e0f5e3d 100644 --- a/GLES_common/yagl_gles_texture.c +++ b/GLES_common/yagl_gles_texture.c @@ -272,6 +272,7 @@ void yagl_gles_texture_set_image(struct yagl_gles_texture *texture, texture->global_name = image->tex_global_name; texture->image = image; + texture->internalformat = GL_RGBA; bind: yagl_host_glBindTexture(texture->target == GL_TEXTURE_EXTERNAL_OES ? GL_TEXTURE_2D : texture->target, |