mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
Don't use R200 texture constants - R300 fields are all different.
This commit is contained in:
parent
439f7feab1
commit
5737fda093
1 changed files with 4 additions and 0 deletions
|
|
@ -1095,10 +1095,12 @@ static GLboolean enable_tex_2d(GLcontext * ctx, int unit)
|
|||
|
||||
/* Need to load the 2d images associated with this unit.
|
||||
*/
|
||||
#if 0
|
||||
if (t->format & R200_TXFORMAT_NON_POWER2) {
|
||||
t->format &= ~R200_TXFORMAT_NON_POWER2;
|
||||
t->base.dirty_images[0] = ~0;
|
||||
}
|
||||
#endif
|
||||
|
||||
ASSERT(tObj->Target == GL_TEXTURE_2D || tObj->Target == GL_TEXTURE_1D);
|
||||
|
||||
|
|
@ -1199,10 +1201,12 @@ static GLboolean enable_tex_rect(GLcontext * ctx, int unit)
|
|||
struct gl_texture_object *tObj = texUnit->_Current;
|
||||
r300TexObjPtr t = (r300TexObjPtr) tObj->DriverData;
|
||||
|
||||
#if 0
|
||||
if (!(t->format & R200_TXFORMAT_NON_POWER2)) {
|
||||
t->format |= R200_TXFORMAT_NON_POWER2;
|
||||
t->base.dirty_images[0] = ~0;
|
||||
}
|
||||
#endif
|
||||
|
||||
ASSERT(tObj->Target == GL_TEXTURE_RECTANGLE_NV);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue