- 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>
}
}
+ /*
+ * 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,
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,