Skip to content

Commit

Permalink
Blind Windows buildfix
Browse files Browse the repository at this point in the history
Need to handle the vertex preview coordinates too.
  • Loading branch information
unknownbrackets committed Aug 8, 2015
1 parent 22e5431 commit 1c61470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Windows/GEDebugger/VertexPreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void CGEDebugger::UpdatePrimPreview(u32 op) {
};

Matrix4x4 ortho;
ortho.setOrtho(-(float)gstate_c.cutRTOffsetX, (frameWindow->TexWidth() - (int)gstate_c.cutRTOffsetX) * scale[0], frameWindow->TexHeight() * scale[1], 0, -1, 1);
ortho.setOrtho(-(float)gstate_c.curRTOffsetX, (frameWindow->TexWidth() - (int)gstate_c.curRTOffsetX) * scale[0], frameWindow->TexHeight() * scale[1], 0, -1, 1);
glUniformMatrix4fv(previewProgram->u_viewproj, 1, GL_FALSE, ortho.getReadPtr());
glEnableVertexAttribArray(previewProgram->a_position);
glVertexAttribPointer(previewProgram->a_position, 3, GL_FLOAT, GL_FALSE, sizeof(GPUDebugVertex), (float *)vertices.data() + 2);
Expand Down

0 comments on commit 1c61470

Please sign in to comment.