mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 02:20:38 +02:00
mesa: add missing RGB9_E5 format in _mesa_base_fbo_format
This fixes KHR-GL45.internalformat.renderbuffer.rgb9_e5. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
df13588d21
commit
513c2263cb
1 changed files with 3 additions and 0 deletions
|
|
@ -1976,6 +1976,9 @@ _mesa_base_fbo_format(const struct gl_context *ctx, GLenum internalFormat)
|
|||
ctx->Extensions.ARB_texture_float) ||
|
||||
_mesa_is_gles3(ctx) /* EXT_color_buffer_float */ )
|
||||
? GL_RGBA : 0;
|
||||
case GL_RGB9_E5:
|
||||
return (_mesa_is_desktop_gl(ctx) && ctx->Extensions.EXT_texture_shared_exponent)
|
||||
? GL_RGB: 0;
|
||||
case GL_ALPHA16F_ARB:
|
||||
case GL_ALPHA32F_ARB:
|
||||
return ctx->API == API_OPENGL_COMPAT &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue