From 252966bb172b02c62058520c23debb7d7213b530 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 18 Dec 2022 11:49:49 -0800 Subject: [PATCH] GL: Cleanup a check to use ARB instead. --- Common/Data/Convert/SmallDataConvert.h | 2 +- GPU/GLES/DepthBufferGLES.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Data/Convert/SmallDataConvert.h b/Common/Data/Convert/SmallDataConvert.h index 0449d3df16..03c60fa88e 100644 --- a/Common/Data/Convert/SmallDataConvert.h +++ b/Common/Data/Convert/SmallDataConvert.h @@ -174,7 +174,7 @@ inline void CopyFloat3(float dest[3], const float src[3]) { dest[2] = src[2]; } -inline void CopyFloat4(float dest[3], const float src[3]) { +inline void CopyFloat4(float dest[4], const float src[4]) { #ifdef _M_SSE _mm_storeu_ps(dest, _mm_loadu_ps(src)); #else diff --git a/GPU/GLES/DepthBufferGLES.cpp b/GPU/GLES/DepthBufferGLES.cpp index 7be1adf9d3..6be7ba6564 100644 --- a/GPU/GLES/DepthBufferGLES.cpp +++ b/GPU/GLES/DepthBufferGLES.cpp @@ -128,7 +128,7 @@ static bool SupportsDepthTexturing() { if (gl_extensions.IsGLES) { return gl_extensions.OES_packed_depth_stencil && (gl_extensions.OES_depth_texture || gl_extensions.GLES3); } - return gl_extensions.VersionGEThan(3, 0); + return gl_extensions.ARB_texture_float; } static Draw::Pipeline *CreateReadbackPipeline(Draw::DrawContext *draw, const char *tag, const UniformBufferDesc *ubDesc, const char *fs, const char *fsTag, const char *vs, const char *vsTag) {