Skip to content

Commit

Permalink
opengl: remove the check for GL_EXT_color_buffer_half_float
Browse files Browse the repository at this point in the history
It is a GLES 2.0 extension, and we do not enable 16f formats with GLES 2.0 at present.
  • Loading branch information
ruihe774 authored and haasn committed May 29, 2024
1 parent f6f2125 commit bd81db2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/opengl/formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,7 @@ bool gl_setup_formats(struct pl_gpu_t *gpu)
DO_FORMATS(formats_bgra_gles);
DO_FORMATS(formats_uint);
DO_FORMATS(formats_basic_vertex);
if (p->gles_ver >= 32 || pl_opengl_has_ext(p->gl, "GL_EXT_color_buffer_half_float")
|| pl_opengl_has_ext(p->gl, "GL_EXT_color_buffer_float")) {
if (p->gles_ver >= 32 || pl_opengl_has_ext(p->gl, "GL_EXT_color_buffer_float")) {
DO_FORMATS(formats_float16_fbo);
} else {
DO_FORMATS(formats_float16_fallback);
Expand Down
1 change: 0 additions & 1 deletion src/opengl/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ if opengl_build.allowed()
'GL_ARB_vertex_array_object',
'GL_EXT_EGL_image_storage',
'GL_EXT_color_buffer_float',
'GL_EXT_color_buffer_half_float',
'GL_EXT_texture3D',
'GL_EXT_texture_format_BGRA8888',
'GL_EXT_texture_integer',
Expand Down

0 comments on commit bd81db2

Please sign in to comment.