projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b8287f
)
mesa: fix initialization of GL_FOG_MODE in _mesa_init_driver_state()
author
Brian Paul
<brianp@vmware.com>
Thu, 11 Aug 2011 15:02:16 +0000
(09:02 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 11 Aug 2011 15:05:53 +0000
(09:05 -0600)
src/mesa/drivers/common/driverfuncs.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/driverfuncs.c
b/src/mesa/drivers/common/driverfuncs.c
index 70f8727a092badfa6e92589ef6ae9d20d4e908d8..a6174ee2f56fa131abdee951003d90146e6ee22c 100644
(file)
--- a/
src/mesa/drivers/common/driverfuncs.c
+++ b/
src/mesa/drivers/common/driverfuncs.c
@@
-286,7
+286,10
@@
_mesa_init_driver_state(struct gl_context *ctx)
ctx->Driver.Enable(ctx, GL_TEXTURE_CUBE_MAP, GL_FALSE);
ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color);
- ctx->Driver.Fogfv(ctx, GL_FOG_MODE, 0);
+ {
+ GLfloat mode = (GLfloat) ctx->Fog.Mode;
+ ctx->Driver.Fogfv(ctx, GL_FOG_MODE, &mode);
+ }
ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density);
ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start);
ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End);