[iortcw] 24/152: All: Fix building for OpenGL ES
Simon McVittie
smcv at debian.org
Fri Sep 8 10:39:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.5a
in repository iortcw.
commit 878cee52e5ccc02c8b08127e788df6ae3e8d4cb6
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Thu Jan 28 18:33:56 2016 -0500
All: Fix building for OpenGL ES
---
MP/code/renderer/tr_flares.c | 4 ++++
SP/code/renderer/tr_flares.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/MP/code/renderer/tr_flares.c b/MP/code/renderer/tr_flares.c
index 4aae1be..ed36215 100644
--- a/MP/code/renderer/tr_flares.c
+++ b/MP/code/renderer/tr_flares.c
@@ -352,10 +352,14 @@ void RB_TestFlare( flare_t *f ) {
glState.finishCalled = qfalse;
// read back the z buffer contents
+#ifdef USE_OPENGLES
+ screenZ = 0;
+#else
qglReadPixels( f->windowX, f->windowY, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth );
screenZ = backEnd.viewParms.projectionMatrix[14] /
( ( 2*depth - 1 ) * backEnd.viewParms.projectionMatrix[11] - backEnd.viewParms.projectionMatrix[10] );
+#endif
visible = f->cgvisible;
diff --git a/SP/code/renderer/tr_flares.c b/SP/code/renderer/tr_flares.c
index 36b8c8e..df5c1d7 100644
--- a/SP/code/renderer/tr_flares.c
+++ b/SP/code/renderer/tr_flares.c
@@ -354,10 +354,14 @@ void RB_TestFlare( flare_t *f ) {
glState.finishCalled = qfalse;
// read back the z buffer contents
+#ifdef USE_OPENGLES
+ screenZ = 0;
+#else
qglReadPixels( f->windowX, f->windowY, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth );
screenZ = backEnd.viewParms.projectionMatrix[14] /
( ( 2*depth - 1 ) * backEnd.viewParms.projectionMatrix[11] - backEnd.viewParms.projectionMatrix[10] );
+#endif
visible = (qboolean)( f->flags & 1 );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list