Fix OpenGL crash introduced in #13536

This commit is contained in:
Henrik Rydgård committed 2020-10-11 22:34:37 +02:00
1 parent afb35c3be3
commit 495fd9a13c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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) {