projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602a3e5
)
mesa: don't call _mesa_update_clip_plane in the GL core profile
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 14 Jun 2017 12:46:43 +0000
(14:46 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000
(
01:51
+0200)
It uses the projection matrix to transform the clip plane.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/enable.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/enable.c
b/src/mesa/main/enable.c
index 752a740c861a9db96aee852e2190a5f73ac8eb4a..f1a9c7b7db67cb7bdce73ce433c0494431195779 100644
(file)
--- a/
src/mesa/main/enable.c
+++ b/
src/mesa/main/enable.c
@@
-359,7
+359,8
@@
_mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
if (state) {
ctx->Transform.ClipPlanesEnabled |= (1 << p);
- _mesa_update_clip_plane(ctx, p);
+ if (ctx->API == API_OPENGL_COMPAT || ctx->API == API_OPENGLES)
+ _mesa_update_clip_plane(ctx, p);
}
else {
ctx->Transform.ClipPlanesEnabled &= ~(1 << p);