X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fgles2rice%2Fsrc%2FOGLGraphicsContext.cpp;h=6c1f4e8b5398eb1842b71945fae73eb6a3080d81;hb=0c9dca78d037f55fed62bf7d92c9db2abd11d654;hp=3be9fc0773f145a4fa595c08a4db6883d935171e;hpb=97d8cdb756d3b3e280f4b420873adaffd228e0af;p=mupen64plus-pandora.git diff --git a/source/gles2rice/src/OGLGraphicsContext.cpp b/source/gles2rice/src/OGLGraphicsContext.cpp old mode 100644 new mode 100755 index 3be9fc0..6c1f4e8 --- a/source/gles2rice/src/OGLGraphicsContext.cpp +++ b/source/gles2rice/src/OGLGraphicsContext.cpp @@ -287,13 +287,14 @@ void COGLGraphicsContext::InitState(void) glDepthRange(-1, 1); #elif SDL_VIDEO_OPENGL_ES2 - glDepthRangef(0.0f, 1.0f); + glDepthRangef(-1.0f, 1.0f); #endif OPENGL_CHECK_ERRORS; } void COGLGraphicsContext::InitOGLExtension(void) { +#if SDL_VIDEO_OPENGL // important extension features, it is very bad not to have these feature m_bSupportMultiTexture = IsExtensionSupported(OSAL_GL_ARB_MULTITEXTURE); m_bSupportTextureEnvCombine = IsExtensionSupported("GL_EXT_texture_env_combine"); @@ -307,7 +308,11 @@ void COGLGraphicsContext::InitOGLExtension(void) m_bSupportRescaleNormal = IsExtensionSupported("GL_EXT_rescale_normal"); m_bSupportLODBias = IsExtensionSupported("GL_EXT_texture_lod_bias"); m_bSupportAnisotropicFiltering = IsExtensionSupported("GL_EXT_texture_filter_anisotropic"); - +#else + m_bSupportMultiTexture = true; + m_bSupportFogCoord = false; + m_bSupportAnisotropicFiltering = true; +#endif // Compute maxAnisotropicFiltering m_maxAnisotropicFiltering = 0; @@ -331,7 +336,8 @@ void COGLGraphicsContext::InitOGLExtension(void) if((uint32) m_maxAnisotropicFiltering > options.anisotropicFiltering) m_maxAnisotropicFiltering = options.anisotropicFiltering; } - + +#if SDL_VIDEO_OPENGL // Nvidia only extension features (optional) m_bSupportNVRegisterCombiner = IsExtensionSupported("GL_NV_register_combiners"); m_bSupportTextureMirrorRepeat = IsExtensionSupported("GL_IBM_texture_mirrored_repeat") || IsExtensionSupported("ARB_texture_mirrored_repeat"); @@ -340,7 +346,9 @@ void COGLGraphicsContext::InitOGLExtension(void) m_bSupportBlendColor = IsExtensionSupported("GL_EXT_blend_color"); m_bSupportBlendSubtract = IsExtensionSupported("GL_EXT_blend_subtract"); m_bSupportNVTextureEnvCombine4 = IsExtensionSupported("GL_NV_texture_env_combine4"); - +#else + m_supportTextureMirror = true; +#endif } bool COGLGraphicsContext::IsExtensionSupported(const char* pExtName)