projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95aa0e5
)
st/mesa: expose conservative_depth if GLSL 1.3 is supported
author
Marek Olšák
<maraeo@gmail.com>
Tue, 13 Dec 2011 17:11:00 +0000
(18:11 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Sat, 17 Dec 2011 13:56:21 +0000
(14:56 +0100)
It's not yet, but it can be enabled by the override environment variable.
src/mesa/state_tracker/st_extensions.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index
47a178b
..
dc17d76
100644
(file)
--- a/
src/mesa/state_tracker/st_extensions.c
+++ b/
src/mesa/state_tracker/st_extensions.c
@@
-263,6
+263,12
@@
void st_init_extensions(struct st_context *st)
ctx->Const.GLSLVersion = 120;
_mesa_override_glsl_version(st->ctx);
+ /* Extensions that only depend on the GLSL version:
+ */
+ if (ctx->Const.GLSLVersion >= 130) {
+ ctx->Extensions.ARB_conservative_depth = GL_TRUE;
+ }
+
/*
* Extensions that are supported by all Gallium drivers:
*/