mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
fix pc vs. gc->ps usage (bug 14197)
This commit is contained in:
parent
6bd32cbcf3
commit
5c82549d9e
1 changed files with 4 additions and 4 deletions
|
|
@ -485,14 +485,14 @@ emit_DrawArrays_none( GLenum mode, GLint first, GLsizei count )
|
|||
|
||||
for ( i = 0 ; i < count ; i++ ) {
|
||||
if ( (pc + single_vertex_size) >= gc->bufEnd ) {
|
||||
pc = __glXFlushRenderBuffer(gc, gc->pc);
|
||||
pc = __glXFlushRenderBuffer(gc, pc);
|
||||
}
|
||||
|
||||
pc = emit_element_none( pc, arrays, first + i );
|
||||
}
|
||||
|
||||
if ( (pc + 4) >= gc->bufEnd ) {
|
||||
pc = __glXFlushRenderBuffer(gc, gc->pc);
|
||||
pc = __glXFlushRenderBuffer(gc, pc);
|
||||
}
|
||||
|
||||
(void) memcpy( pc, end_cmd, 4 );
|
||||
|
|
@ -726,7 +726,7 @@ emit_DrawElements_none( GLenum mode, GLsizei count, GLenum type,
|
|||
unsigned index = 0;
|
||||
|
||||
if ( (pc + single_vertex_size) >= gc->bufEnd ) {
|
||||
pc = __glXFlushRenderBuffer(gc, gc->pc);
|
||||
pc = __glXFlushRenderBuffer(gc, pc);
|
||||
}
|
||||
|
||||
switch( type ) {
|
||||
|
|
@ -744,7 +744,7 @@ emit_DrawElements_none( GLenum mode, GLsizei count, GLenum type,
|
|||
}
|
||||
|
||||
if ( (pc + 4) >= gc->bufEnd ) {
|
||||
pc = __glXFlushRenderBuffer(gc, gc->pc);
|
||||
pc = __glXFlushRenderBuffer(gc, pc);
|
||||
}
|
||||
|
||||
(void) memcpy( pc, end_cmd, 4 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue