Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
vitaquake3
Commits
45489bc0
Commit
45489bc0
authored
Mar 17, 2018
by
Rinnegatamante
Browse files
Fixed 2D HUD being covered by viewmodel.
parent
0cfd223e
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/renderergl1/tr_backend.c
View file @
45489bc0
...
...
@@ -678,7 +678,7 @@ void RB_SetGL2D (void) {
qglScissor
(
0
,
0
,
glConfig
.
vidWidth
,
glConfig
.
vidHeight
);
qglMatrixMode
(
GL_PROJECTION
);
qglLoadIdentity
();
qglOrtho
(
0
,
glConfig
.
vidWidth
,
glConfig
.
vidHeight
,
0
,
-
99999
,
99999
);
qglOrtho
(
0
,
glConfig
.
vidWidth
,
glConfig
.
vidHeight
,
0
,
0
,
1
);
qglMatrixMode
(
GL_MODELVIEW
);
qglLoadIdentity
();
...
...
@@ -770,10 +770,10 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *
0
.
5
f
/
cols
,
(
rows
-
0
.
5
f
)
/
rows
};
float
vertices
[]
=
{
x
,
y
,
0
.
5
f
,
x
+
w
,
y
,
0
.
5
f
,
x
+
w
,
y
+
h
,
0
.
5
f
,
x
,
y
+
h
,
0
.
5
f
x
,
y
,
0
.
0
f
,
x
+
w
,
y
,
0
.
0
f
,
x
+
w
,
y
+
h
,
0
.
0
f
,
x
,
y
+
h
,
0
.
0
f
};
qglColor3f
(
tr
.
identityLight
,
tr
.
identityLight
,
tr
.
identityLight
);
...
...
@@ -996,10 +996,10 @@ void RB_ShowImages( void ) {
0
,
0
,
1
,
0
,
1
,
1
,
0
,
1
};
float
vertex
[]
=
{
x
,
y
,
0
.
5
f
,
x
+
w
,
y
,
0
.
5
f
,
x
+
w
,
y
+
h
,
0
.
5
f
,
x
,
y
+
h
,
0
.
5
f
x
,
y
,
0
.
0
f
,
x
+
w
,
y
,
0
.
0
f
,
x
+
w
,
y
+
h
,
0
.
0
f
,
x
,
y
+
h
,
0
.
0
f
};
vglVertexPointer
(
3
,
GL_FLOAT
,
0
,
4
,
vertex
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment