Stop showing z = 1.0 for non through in debugger.
Oops.
This commit is contained in:
parent
442b3171dc
commit
7380c5b664
2 changed files with 2 additions and 1 deletions
|
@ -939,7 +939,7 @@ bool TransformDrawEngine::GetCurrentSimpleVertices(int count, std::vector<GPUDeb
|
|||
}
|
||||
vertices[i].x = drawPos.x;
|
||||
vertices[i].y = drawPos.y;
|
||||
vertices[i].z = 1.0;
|
||||
vertices[i].z = drawPos.z;
|
||||
if (gstate.vertType & GE_VTYPE_COL_MASK) {
|
||||
memcpy(vertices[i].c, vert.color, sizeof(vertices[i].c));
|
||||
} else {
|
||||
|
|
|
@ -40,6 +40,7 @@ static const char preview_vs[] =
|
|||
"uniform mat4 u_viewproj;\n"
|
||||
"void main() {\n"
|
||||
" gl_Position = u_viewproj * a_position;\n"
|
||||
" gl_Position.z = 1.0f;\n"
|
||||
"}\n";
|
||||
|
||||
static GLSLProgram *previewProgram = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue