Procházet zdrojové kódy

svga: move result->key expression after result != NULL check

tags/mesa-9.0
Brian Paul před 13 roky
rodič
revize
d733e5da9c
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3
    1
      src/gallium/drivers/svga/svga_state_constants.c

+ 3
- 1
src/gallium/drivers/svga/svga_state_constants.c Zobrazit soubor

@@ -320,7 +320,7 @@ static enum pipe_error
emit_vs_consts(struct svga_context *svga, unsigned dirty)
{
const struct svga_shader_result *result = svga->state.hw_draw.vs;
const struct svga_vs_compile_key *key = &result->key.vkey;
const struct svga_vs_compile_key *key;
enum pipe_error ret = PIPE_OK;
unsigned offset;

@@ -329,6 +329,8 @@ emit_vs_consts(struct svga_context *svga, unsigned dirty)
if (result == NULL)
return PIPE_OK;

key = &result->key.vkey;

/* SVGA_NEW_VS_CONST_BUFFER
*/
ret = emit_consts( svga, PIPE_SHADER_VERTEX );

Načítá se…
Zrušit
Uložit