Fix blocky rendering issue (and hopefully a crash too)

This commit is contained in:
Simon 2021-03-21 12:09:02 +00:00
parent 20abf08dd0
commit 344e03164b
3 changed files with 5 additions and 4 deletions

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.drbeef.doom3quest"
android:versionCode="21"
android:versionName="1.1.4" android:installLocation="auto" >
android:versionCode="22"
android:versionName="1.1.5" android:installLocation="auto" >
<!-- Tell the system this app requires OpenGL ES 3.1. -->
<uses-feature android:glEsVersion="0x00030001" android:required="true"/>

View file

@ -41,7 +41,7 @@ If you have questions concerning this license or the applicable additional terms
#define GAME_NAME "Doom3Quest" // appears on window titles and errors
#endif
#define ENGINE_VERSION "Doom3Quest 1.1.4" // printed in console
#define ENGINE_VERSION "Doom3Quest 1.1.5" // printed in console
#ifdef ID_REPRODUCIBLE_BUILD
// for reproducible builds we hardcode values that would otherwise come from __DATE__ and __TIME__

View file

@ -611,7 +611,8 @@ GLuint RB_CalculateProjection(const drawSurf_t * const surf) {
GLuint result = NORMAL_PROJECTION;
if ( surf->space->weaponDepthHack ) {
result = WEAPON_PROJECTION;
} else if ( surf->space->modelDepthHack != 0.0 ) {
} else if ( surf->space->modelDepthHack > 0.0 &&
surf->space->modelDepthHack <= 1.0 ) {
result = DEPTH_HACK_PROJECTION + (GLuint)(surf->space->modelDepthHack * (float)NUM_DEPTH_HACK_PROJECTIONS);
} else if (
//Is this set up as an orthographic projection?