diff options
author | Kristian Høgsberg <[email protected]> | 2010-04-22 21:11:56 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-04-27 19:28:10 -0400 |
commit | 61d94dd207459e0c42d98c9d6eb7df5eabdfd8a4 (patch) | |
tree | b21d77a10847f7aa383075af2ea1e419522c1c9a /src/mesa/es | |
parent | 44f9aef9ee9ceda0659e882afbac4d877267c4fd (diff) |
mesa: Move GL_RGB565 workaround into fbobject.c
Diffstat (limited to 'src/mesa/es')
-rw-r--r-- | src/mesa/es/main/es_fbo.c | 37 | ||||
-rw-r--r-- | src/mesa/es/sources.mak | 2 |
2 files changed, 0 insertions, 39 deletions
diff --git a/src/mesa/es/main/es_fbo.c b/src/mesa/es/main/es_fbo.c deleted file mode 100644 index 18036378304..00000000000 --- a/src/mesa/es/main/es_fbo.c +++ /dev/null @@ -1,37 +0,0 @@ -/************************************************************************** - * - * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. - * All Rights Reserved. - * - **************************************************************************/ - - -#include "GLES2/gl2.h" -#include "GLES2/gl2ext.h" - - -#ifndef GL_RGB5 -#define GL_RGB5 0x8050 -#endif - - -extern void GL_APIENTRY _es_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height); - -extern void GL_APIENTRY _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height); - - -void GL_APIENTRY -_es_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, - GLsizei width, GLsizei height) -{ - switch (internalFormat) { - case GL_RGB565: - /* XXX this confuses GL_RENDERBUFFER_INTERNAL_FORMAT_OES */ - /* choose a closest format */ - internalFormat = GL_RGB5; - break; - default: - break; - } - _mesa_RenderbufferStorageEXT(target, internalFormat, width, height); -} diff --git a/src/mesa/es/sources.mak b/src/mesa/es/sources.mak index e6908feea31..3beea388844 100644 --- a/src/mesa/es/sources.mak +++ b/src/mesa/es/sources.mak @@ -7,7 +7,6 @@ LOCAL_ES1_SOURCES := \ main/drawtex.c \ main/es_cpaltex.c \ main/es_enable.c \ - main/es_fbo.c \ main/es_query_matrix.c \ main/es_texgen.c \ glapi/glapi-es1/main/enums.c @@ -28,7 +27,6 @@ LOCAL_ES1_INCLUDES := \ LOCAL_ES2_SOURCES := \ main/get_es2.c \ main/es_cpaltex.c \ - main/es_fbo.c \ glapi/glapi-es2/main/enums.c LOCAL_ES2_GALLIUM_SOURCES := \ |