mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix OpenGL crash introduced in #13536
This commit is contained in:
1 parent
afb35c3be3
commit
495fd9a13c
2 files changed
+2
-2
No files matched your search
@@ -183,7 +183,7 @@ void GPU_GLES::CheckGPUFeatures() {
|
||||
}
|
||||
|
||||
if (gl_extensions.ARB_framebuffer_object || gl_extensions.NV_framebuffer_blit || gl_extensions.GLES3) {
|
||||
features |= GPU_SUPPORTS_FRAMEBUFFER_BLIT;
|
||||
features |= GPU_SUPPORTS_FRAMEBUFFER_BLIT | GPU_SUPPORTS_FRAMEBUFFER_BLIT_TO_DEPTH;
|
||||
}
|
||||
if (gl_extensions.ARB_vertex_array_object && gl_extensions.IsCoreContext) {
|
||||
features |= GPU_SUPPORTS_VAO;
|
||||
|
||||
@@ -158,7 +158,7 @@ inline float Clampf(float val, float min, float max) {
|
||||
}
|
||||
|
||||
inline float Signf(float val) {
|
||||
return (0.0f < val) - (val < 0.0f);
|
||||
return (float)((0.0f < val) - (val < 0.0f));
|
||||
}
|
||||
|
||||
inline float LinearMapf(float val, float a0, float a1, float b0, float b1) {
|
||||
|
||||
Reference in new issue
Block a user