From 7454287d3b2a9b3dbb15ecbf07a99c6272826d6e Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 11 Dec 2023 23:25:54 +0100 Subject: [PATCH] cogl/gles: Fix GL_OES_rgb8_rgba8 check Fixes: bbf2d83e94 ("cogl/gles: Require OES_rgb8_rgba8 to have color-renderable 8bpc formats") Part-of: --- cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c index 8174d72b8..e9a200241 100644 --- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c +++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c @@ -568,13 +568,13 @@ _cogl_driver_update_features (CoglContext *context, gl_minor, gl_extensions); - if (!_cogl_check_extension ("OES_rgb8_rgba8", gl_extensions) && + if (!_cogl_check_extension ("GL_OES_rgb8_rgba8", gl_extensions) && !COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 0)) { g_set_error (error, COGL_DRIVER_ERROR, COGL_DRIVER_ERROR_INVALID_VERSION, - "OES_rgb8_rgba8 is required for GLES 2"); + "GL_OES_rgb8_rgba8 is required for GLES 2"); g_strfreev (gl_extensions); return FALSE; }