if(type<0)return;
+ /* A packet cannot have more than 16383 data words.. */
+ if(((end-start)*8+4*rmesa->state.texture.tc_count)>16380){
+ fprintf(stderr, "%s:%s: Too many vertices to paint. Fix me !\n");
+ return;
+ }
start_immediate_packet(end-start, type, 8+4*rmesa->state.texture.tc_count);
#if 1
- #if 0
+ #if 1
return r300_run_immediate_render(ctx, stage);
#else
return r300_run_vb_render(ctx, stage);
FALLBACK_IF(ctx->Multisample.Enabled); // GL_MULTISAMPLE_ARB
/* One step at a time - let one texture pass.. */
- for (i = 1; i < ctx->Const.MaxTextureUnits; i++)
+ for (i = 2; i < ctx->Const.MaxTextureUnits; i++)
FALLBACK_IF(ctx->Texture.Unit[i].Enabled);
/* We don't know how to set this yet */
//value from r300_lib.c for RGB24
//r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=0x88a0c;
- r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=translate_texture_format(ctx, i, t->format, t->base.tObj->Image[0][0]->IntFormat);
+ r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=translate_texture_format(ctx, i, t->format,
+ r300->state.texture.unit[i].texobj!=NULL?t->base.tObj->Image[0][0]->IntFormat:3);
/* Use the code below to quickly find matching texture
formats. Requires an app that displays the same texture
repeatedly */