Merge pull request #16626 from unknownbrackets/gl-cleanup

GL: Cleanup a check to use ARB instead
This commit is contained in:
Henrik Rydgård 2022-12-19 16:51:57 +01:00 committed by GitHub
commit 79ad513b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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) {