SDL_EGL_DeleteContext(_this, context);
}
+int
+Tizen_GLES_GetAlphaSize(_THIS)
+{
+ EGLint alpha_size = 0;
+
+ if (!_this->egl_data) {
+ /* The EGL library wasn't loaded, SDL_GetError() should have info */
+ SDL_Log("egl_data is NULL");
+ return NULL;
+ }
+
+ if (_this->egl_data->eglGetConfigAttrib(_this->egl_data->egl_display,
+ _this->egl_data->egl_config,
+ EGL_ALPHA_SIZE,
+ &alpha_size) == EGL_FALSE || !alpha_size) {
+ alpha_size = 0;
+ }
+ return alpha_size;
+}
+
#endif /* SDL_VIDEO_DRIVER_TIZEN && SDL_VIDEO_OPENGL_EGL */
/* vi: set ts=4 sw=4 expandtab: */
extern void Tizen_GLES_SwapWindow(_THIS, SDL_Window *window);
extern int Tizen_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context);
extern void Tizen_GLES_DeleteContext(_THIS, SDL_GLContext context);
+extern int Tizen_GLES_GetAlphaSize(_THIS);
#endif
#endif /* _SDL_tizenopengles_h */
wind->rotation = 0;
wind->rotation_supported = 0;
wind->received_rotation = 0;
- ecore_wl_window_opaque_region_set(wind->window, window->x, window->y, window->w, window->h);
#if SDL_VIDEO_OPENGL_EGL
if (window->flags & SDL_WINDOW_OPENGL) {
return -1;
}
+ if (!Tizen_GLES_GetAlphaSize(_this)) {
+ ecore_wl_window_opaque_region_set(wind->window, window->x, window->y, window->w, window->h);
+ }
+ else {
+ wl_surface_set_opaque_region(ecore_wl_window_surface_get(wind->window), NULL);
+ }
+
//Support PreRotation
wind->support_pre_rotation = 0;
if (_tizen_rotation_type_get() && _tizen_PreRotatotion_LoadLibrary(wind, "libwayland-egl.so")) {