Skip to content
Permalink
Browse files

glide: Synchronize unused files with upstream.

  • Loading branch information...
littleguy77 committed Dec 22, 2014
1 parent 145de79 commit 225d958ff4ac8dc4fb6bfddb227c8ee05861f4c9
@@ -317,10 +317,6 @@ ifeq ($(NO_SSE), 1)
CFLAGS += -DNOSSE
endif

ifneq ($(CFG_DEFAULTS),)
CFLAGS += -DCFG_DEFAULTS=$(CFG_DEFAULTS)
endif

# set installation options
ifeq ($(PREFIX),)
PREFIX := /usr/local
@@ -439,7 +435,6 @@ targets:
@echo " POSTFIX=name == String added to the name of the the build (default: '')"
@echo " HIRES=(1|0) == Enables/Disables support for hires textures and texture filters (default: 1)"
@echo " TXCDXTN=(1|0) == Enable/Disable external txc_dxtn library (default: 0)"
@echo " CFG_DEFAULTS=jp1 == Use config values optimized for the jolla phone 1"
@echo " Install Options:"
@echo " PREFIX=path == install/uninstall prefix (default: /usr/local)"
@echo " SHAREDIR=path == path to install shared data files (default: PREFIX/share/mupen64plus)"
@@ -24,6 +24,8 @@
#endif // _WIN32
#include "glide.h"
#include "main.h"
#include "../Glide64/winlnxdefs.h"
#include "../Glide64/rdp.h"

#define Z_MAX (65536.0f)

@@ -292,10 +294,17 @@ grDepthBiasLevel( FxI32 level )
LOG("grDepthBiasLevel(%d)\r\n", level);
if (level)
{
if(w_buffer_mode)
glPolygonOffset(1.0f, -(float)level*zscale/255.0f);
if(settings.force_polygon_offset)
{
glPolygonOffset(settings.polygon_offset_factor, settings.polygon_offset_units);
}
else
glPolygonOffset(0, (float)level*biasFactor);
{
if(w_buffer_mode)
glPolygonOffset(1.0f, -(float)level*zscale/255.0f);
else
glPolygonOffset(0, (float)level*biasFactor);
}
glEnable(GL_POLYGON_OFFSET_FILL);
}
else

0 comments on commit 225d958

Please sign in to comment.
You can’t perform that action at this time.