Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4401 | ||
---|---|---|---|
Line 195... | Line 195... | ||
195 | osmesa_choose_line_function( struct gl_context *ctx ) |
195 | osmesa_choose_line_function( struct gl_context *ctx ) |
196 | { |
196 | { |
197 | const OSMesaContext osmesa = OSMESA_CONTEXT(ctx); |
197 | const OSMesaContext osmesa = OSMESA_CONTEXT(ctx); |
198 | const SWcontext *swrast = SWRAST_CONTEXT(ctx); |
198 | const SWcontext *swrast = SWRAST_CONTEXT(ctx); |
Line -... | Line 199... | ||
- | 199 | ||
- | 200 | if (ctx->DrawBuffer && |
|
- | 201 | ctx->DrawBuffer->Visual.redBits == 32) { |
|
- | 202 | /* the special-case line functions in this file don't work |
|
- | 203 | * for float color channels. |
|
- | 204 | */ |
|
- | 205 | return NULL; |
|
- | 206 | } |
|
199 | 207 | ||
200 | if (ctx->RenderMode != GL_RENDER) return NULL; |
208 | if (ctx->RenderMode != GL_RENDER) return NULL; |
201 | if (ctx->Line.SmoothFlag) return NULL; |
209 | if (ctx->Line.SmoothFlag) return NULL; |
202 | if (ctx->Texture._EnabledUnits) return NULL; |
210 | if (ctx->Texture._EnabledUnits) return NULL; |
203 | if (ctx->Light.ShadeModel != GL_FLAT) return NULL; |
211 | if (ctx->Light.ShadeModel != GL_FLAT) return NULL; |
Line 296... | Line 304... | ||
296 | osmesa_choose_triangle_function( struct gl_context *ctx ) |
304 | osmesa_choose_triangle_function( struct gl_context *ctx ) |
297 | { |
305 | { |
298 | const OSMesaContext osmesa = OSMESA_CONTEXT(ctx); |
306 | const OSMesaContext osmesa = OSMESA_CONTEXT(ctx); |
299 | const SWcontext *swrast = SWRAST_CONTEXT(ctx); |
307 | const SWcontext *swrast = SWRAST_CONTEXT(ctx); |
Line -... | Line 308... | ||
- | 308 | ||
- | 309 | if (ctx->DrawBuffer && |
|
- | 310 | ctx->DrawBuffer->Visual.redBits == 32) { |
|
- | 311 | /* the special-case triangle functions in this file don't work |
|
- | 312 | * for float color channels. |
|
- | 313 | */ |
|
- | 314 | return (swrast_tri_func) NULL; |
|
- | 315 | } |
|
300 | 316 | ||
301 | if (ctx->RenderMode != GL_RENDER) return (swrast_tri_func) NULL; |
317 | if (ctx->RenderMode != GL_RENDER) return (swrast_tri_func) NULL; |
302 | if (ctx->Polygon.SmoothFlag) return (swrast_tri_func) NULL; |
318 | if (ctx->Polygon.SmoothFlag) return (swrast_tri_func) NULL; |
303 | if (ctx->Polygon.StippleFlag) return (swrast_tri_func) NULL; |
319 | if (ctx->Polygon.StippleFlag) return (swrast_tri_func) NULL; |
304 | if (ctx->Texture._EnabledUnits) return (swrast_tri_func) NULL; |
320 | if (ctx->Texture._EnabledUnits) return (swrast_tri_func) NULL; |