Skip to content

Commit

Permalink
Fix critical bug in setup_textures
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed May 15, 2020
1 parent 2c1c75d commit 0b7e406
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions xbox/xbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,17 +1205,17 @@ static void setup_textures() {
p = xgu_set_texture_matrix(p, i, &matrix_t[i][0]);

pb_end(p);

// Setup texture shader
p = pb_begin();
p = pb_push1(p, NV097_SET_SHADER_STAGE_PROGRAM,
MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE0, shaders[0])
| MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE1, shaders[1])
| MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE2, shaders[2])
| MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE3, shaders[3]));
pb_end(p);
}

// Setup texture shader
p = pb_begin();
p = pb_push1(p, NV097_SET_SHADER_STAGE_PROGRAM,
MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE0, shaders[0])
| MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE1, shaders[1])
| MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE2, shaders[2])
| MASK(NV097_SET_SHADER_STAGE_PROGRAM_STAGE3, shaders[3]));
pb_end(p);


// Assert that we handled all clip planes
while(clip_plane_index < ARRAY_SIZE(clip_planes)) {
Expand Down

0 comments on commit 0b7e406

Please sign in to comment.