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
8d30d81e
Commit
8d30d81e
authored
Aug 05, 2019
by
Rinnegatamante
Browse files
Fix for broken skybox rendering.
parent
529b6097
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/renderergl1/tr_sky.c
View file @
8d30d81e
...
...
@@ -366,7 +366,9 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max
int
s
,
t
;
GL_Bind
(
image
);
#ifdef URBANTERROR
glDisableClientState
(
GL_COLOR_ARRAY
);
#endif
glEnableClientState
(
GL_TEXTURE_COORD_ARRAY
);
for
(
t
=
mins
[
1
]
+
HALF_SKY_SUBDIVISIONS
;
t
<
maxs
[
1
]
+
HALF_SKY_SUBDIVISIONS
;
t
++
)
{
...
...
@@ -390,6 +392,9 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max
vglDrawObjects
(
GL_TRIANGLE_STRIP
,
numindices
,
GL_TRUE
);
}
//glDisableClientState(GL_TEXTURE_COORD_ARRAY);
#ifdef URBANTERROR
glEnableClientState
(
GL_COLOR_ARRAY
);
#endif
}
static
void
DrawSkyBox
(
shader_t
*
shader
)
...
...
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