Mesa (master): intel: Fall back on glBitmap with fog enabled.
Eric Anholt
anholt at kemper.freedesktop.org
Fri Jul 3 02:36:45 UTC 2009
Module: Mesa
Branch: master
Commit: 8ae02a3919bf31bd33f86208472e100eedb58497
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ae02a3919bf31bd33f86208472e100eedb58497
Author: Eric Anholt <eric at anholt.net>
Date: Thu Jul 2 19:21:22 2009 -0700
intel: Fall back on glBitmap with fog enabled.
We would have to build the program with the appropriate fog mode, and
also supply the fog coordinate if appropriate.
Bug #19413.
---
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
index e678cd2..0e8ec92 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
@@ -411,6 +411,12 @@ intel_texture_bitmap(GLcontext * ctx,
return GL_FALSE;
}
+ if (ctx->Fog.Enabled) {
+ if (INTEL_DEBUG & DEBUG_FALLBACKS)
+ fprintf(stderr, "glBitmap() fallback: fog\n");
+ return GL_FALSE;
+ }
+
/* Check that we can load in a texture this big. */
if (width > (1 << (ctx->Const.MaxTextureLevels - 1)) ||
height > (1 << (ctx->Const.MaxTextureLevels - 1))) {
More information about the mesa-commit
mailing list