[ORBIS] Several EGL and GL fixes
This commit is contained in:
parent
167537ac10
commit
d34b94a661
|
@ -54,7 +54,7 @@ void gl_load_texture_image(GLenum target,
|
||||||
GLenum type,
|
GLenum type,
|
||||||
const GLvoid * data)
|
const GLvoid * data)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_PSGL
|
#if !defined(HAVE_PSGL) && !defined(ORBIS)
|
||||||
#ifdef HAVE_OPENGLES2
|
#ifdef HAVE_OPENGLES2
|
||||||
if (gl_check_capability(GL_CAPS_TEX_STORAGE_EXT) && internalFormat != GL_BGRA_EXT)
|
if (gl_check_capability(GL_CAPS_TEX_STORAGE_EXT) && internalFormat != GL_BGRA_EXT)
|
||||||
{
|
{
|
||||||
|
|
|
@ -193,8 +193,8 @@ static bool orbis_ctx_bind_api(void *data,
|
||||||
(void)data;
|
(void)data;
|
||||||
ctx_orbis_api = api;
|
ctx_orbis_api = api;
|
||||||
|
|
||||||
if (api == GFX_CTX_OPENGL_API)
|
if (api == GFX_CTX_OPENGL_ES_API)
|
||||||
if (eglBindAPI(EGL_OPENGL_API) != EGL_FALSE)
|
if (eglBindAPI(EGL_OPENGL_ES_API) != EGL_FALSE)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue