Skip to content

Commit c2c0983

Browse files
committed
svga: don't use debug code in update_state() in release builds
Reviewed-by: Jose Fonseca <[email protected]>
1 parent aeee7f2 commit c2c0983

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gallium/drivers/svga/svga_state.c

+4
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ update_state(struct svga_context *svga,
129129
const struct svga_tracked_state *atoms[],
130130
unsigned *state)
131131
{
132+
#ifdef DEBUG
132133
boolean debug = TRUE;
134+
#else
135+
boolean debug = FALSE;
136+
#endif
133137
enum pipe_error ret = PIPE_OK;
134138
unsigned i;
135139

0 commit comments

Comments
 (0)