Skip to content

Commit 7f5ed27

Browse files
committed
WIP: screenSpace: fixup
1 parent 56bb83e commit 7f5ed27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/engine/renderer/tr_vbo.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,12 @@ void R_BindNullIBO()
555555

556556
static void R_InitGenericVBOs() {
557557
// Min and max coordinates of the quad
558-
static const vec3_t min = { 0.0f, 0.0f, 0.0f };
558+
559+
static const vec3_t min_new = { 0.0f, 0.0f, 0.0f };
560+
static const vec3_t min_old = { -1.0f, -1.f, -1.0f };
561+
const float *min = glConfig2.gpuShader4Available ? min_new : min_old;
559562
static const vec3_t max = { 1.0f, 1.0f, 0.0f };
563+
560564
{
561565
/*
562566
Quad is a static mesh with 4 vertices and 2 triangles

0 commit comments

Comments
 (0)