Implemented GL_NV_texture_rectangle extension.
Replace struct gl_texure_object's Dimension w/ Target field. Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled field is obsolete, but still present for now. This effectively removes the 8-texture units limit, 32 units now possible, but unlikely! New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field. Updated device drivers to use ctx->Texture._EnabledUnits.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: xm_tri.c,v 1.23 2002/06/15 02:38:17 brianp Exp $ */
|
||||
/* $Id: xm_tri.c,v 1.24 2002/06/15 03:03:10 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -1529,7 +1529,7 @@ static swrast_tri_func get_triangle_func( GLcontext *ctx )
|
||||
|
||||
if (ctx->RenderMode != GL_RENDER) return (swrast_tri_func) NULL;
|
||||
if (ctx->Polygon.SmoothFlag) return (swrast_tri_func) NULL;
|
||||
if (ctx->Texture._ReallyEnabled) return (swrast_tri_func) NULL;
|
||||
if (ctx->Texture._EnabledUnits) return (swrast_tri_func) NULL;
|
||||
if (swrast->_RasterMask & MULTI_DRAW_BIT) return (swrast_tri_func) NULL;
|
||||
|
||||
if (xmesa->xm_buffer->buffer==XIMAGE) {
|
||||
|
Reference in New Issue
Block a user