mesa/main: remove needless check

EXT_color_buffer_half_float is only exposed in GLES contexts, so this
check is needless.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29528>
This commit is contained in:
Erik Faye-Lund
2024-06-03 11:46:46 +02:00
committed by Marge Bot
parent e5bd74b775
commit 9648bab4b6

View File

@@ -1344,7 +1344,7 @@ _mesa_test_framebuffer_completeness(struct gl_context *ctx,
* due to invalid format. This is special case for the extension where
* CTS tests expect unsupported framebuffer status instead of incomplete.
*/
if ((_mesa_is_gles(ctx) && _mesa_has_EXT_color_buffer_half_float(ctx)) &&
if (_mesa_has_EXT_color_buffer_half_float(ctx) &&
!gles_check_float_renderable(ctx, att)) {
fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED;
return;