OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd85ba0
)
main: Fix delete_shader_cb() for geometry shaders
author
Paul Berry
<stereotype441@gmail.com>
Mon, 17 Jun 2013 03:18:59 +0000
(06:18 +0300)
committer
Paul Berry
<stereotype441@gmail.com>
Fri, 2 Aug 2013 03:23:25 +0000
(20:23 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/shared.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shared.c
b/src/mesa/main/shared.c
index
5ef8809
..
2f73cf3
100644
(file)
--- a/
src/mesa/main/shared.c
+++ b/
src/mesa/main/shared.c
@@
-218,7
+218,8
@@
delete_shader_cb(GLuint id, void *data, void *userData)
{
struct gl_context *ctx = (struct gl_context *) userData;
struct gl_shader *sh = (struct gl_shader *) data;
- if (sh->Type == GL_FRAGMENT_SHADER || sh->Type == GL_VERTEX_SHADER) {
+ if (sh->Type == GL_FRAGMENT_SHADER || sh->Type == GL_VERTEX_SHADER ||
+ sh->Type == GL_GEOMETRY_SHADER) {
ctx->Driver.DeleteShader(ctx, sh);
}
else {