[Mesa-dev] [PATCH 2/3] mesa: Don't allow RGB interger formats in OpenGL ES 3.0
Chris Forbes
chrisf at ijw.co.nz
Tue Dec 4 10:39:02 PST 2012
Botched spelling of `integer` in the commit message.
On Tue, Dec 4, 2012 at 6:31 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: Matt Turner <mattst88 at gmail.com>
> Cc: Marek Olšák <maraeo at gmail.com>
> ---
> src/mesa/main/fbobject.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
> index ab53bac..281cdd0 100644
> --- a/src/mesa/main/fbobject.c
> +++ b/src/mesa/main/fbobject.c
> @@ -1261,10 +1261,8 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat)
> case GL_RGB8I_EXT:
> case GL_RGB16I_EXT:
> case GL_RGB32I_EXT:
> - return ctx->Version >= 30
> - || (_mesa_is_desktop_gl(ctx) &&
> - ctx->Extensions.EXT_texture_integer) ? GL_RGB : 0;
> -
> + return _mesa_is_desktop_gl(ctx) && ctx->Extensions.EXT_texture_integer
> + ? GL_RGB : 0;
> case GL_R8UI:
> case GL_R8I:
> case GL_R16UI:
> --
> 1.7.11.7
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list