mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Some minor fixes. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4768 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
20c7bbbea6
commit
4e664fe878
8 changed files with 37 additions and 8 deletions
|
@ -256,7 +256,7 @@ endif
|
|||
OPTIMIZATIONS=-O$(OPTLEVEL) $(OPTOPT)
|
||||
|
||||
DEBUGFLAG=-g
|
||||
ifneq (0,$(CLANG))
|
||||
ifeq (0,$(CLANG))
|
||||
ifneq ($(PLATFORM),WII)
|
||||
DEBUGFLAG=-ggdb
|
||||
endif
|
||||
|
@ -678,6 +678,8 @@ ifeq ($(PLATFORM),DARWIN)
|
|||
COMPILERFLAGS+= -DUNDERSCORES
|
||||
ASFORMAT=macho$(SYSBITS)
|
||||
ASFLAGS+= -DUNDERSCORES
|
||||
# ASM on OS X crashes in mmxoverlay()
|
||||
override NOASM=1
|
||||
|
||||
# LIBDIRS+= -Lplatform/Apple/lib
|
||||
# COMPILERFLAGS+= -Iplatform/Apple/include
|
||||
|
@ -715,9 +717,6 @@ ifeq ($(PLATFORM),DARWIN)
|
|||
|
||||
ifeq (1,$(BUILD32_ON_64))
|
||||
ARCH=-arch i386
|
||||
else
|
||||
# ASM won't work on PowerPC or x86_64
|
||||
override NOASM=1
|
||||
endif
|
||||
|
||||
ifneq ($(findstring x86_64,$(ARCH)),x86_64)
|
||||
|
@ -730,7 +729,9 @@ ifeq ($(PLATFORM),DARWIN)
|
|||
endif
|
||||
endif
|
||||
|
||||
COMMONFLAGS += -fno-pic
|
||||
ifeq (0,$(CLANG))
|
||||
COMMONFLAGS += -fno-pic
|
||||
endif
|
||||
endif
|
||||
ifeq ($(PLATFORM),WINDOWS)
|
||||
COMPILERFLAGS+= -DUNDERSCORES -DHAVE_INTTYPES -Iplatform/Windows/include
|
||||
|
|
|
@ -378,6 +378,8 @@ FORCE_INLINE void B_BUF32(uint8_t *buf, uint32_t x)
|
|||
buf[2] = (x & 0x00FF0000) >> 16;
|
||||
buf[3] = (x & 0xFF000000) >> 24;
|
||||
}
|
||||
#if 0
|
||||
// i686-apple-darwin11-llvm-gcc-4.2 complains "integer constant is too large for 'long' type"
|
||||
FORCE_INLINE void B_BUF64(uint8_t *buf, uint64_t x)
|
||||
{
|
||||
buf[0] = (x & 0x00000000000000FF);
|
||||
|
@ -389,6 +391,7 @@ FORCE_INLINE void B_BUF64(uint8_t *buf, uint64_t x)
|
|||
buf[6] = (x & 0x00FF000000000000) >> 48;
|
||||
buf[7] = (x & 0xFF00000000000000) >> 56;
|
||||
}
|
||||
#endif
|
||||
|
||||
FORCE_INLINE uint16_t B_UNBUF16(const uint8_t *buf) { return (buf[1] << 8) | (buf[0]); }
|
||||
FORCE_INLINE uint32_t B_UNBUF32(const uint8_t *buf)
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#include "hightile.h"
|
||||
#include "baselayer.h" // glinfo
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct { uint8_t r, g, b, a; } coltype;
|
||||
|
||||
extern int32_t rendmode;
|
||||
|
@ -189,7 +193,7 @@ extern int32_t drawingskybox;
|
|||
extern int32_t hicprecaching;
|
||||
extern float gyxscale, gxyaspect, ghalfx, grhalfxdown10;
|
||||
extern float fcosglobalang, fsinglobalang;
|
||||
extern float fxdim, fydim, fxdimen, fydimen, fviewingrange;
|
||||
extern float fxdim, fydim, fydimen, fviewingrange;
|
||||
|
||||
extern char ptempbuf[MAXWALLSB<<1];
|
||||
|
||||
|
@ -198,6 +202,10 @@ extern char ptempbuf[MAXWALLSB<<1];
|
|||
extern void polymost_setupglowtexture(int32_t texunits, int32_t tex);
|
||||
extern void polymost_setupdetailtexture(int32_t texunits, int32_t tex);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2263,6 +2263,7 @@ static int32_t smostwall[MAXWALLSB], smostwallcnt = -1;
|
|||
static vec3_t spritesxyz[MAXSPRITESONSCREEN+1];
|
||||
|
||||
int32_t xdimen = -1, xdimenrecip, halfxdimen, xdimenscale, xdimscale;
|
||||
float fxdimen = -1.f;
|
||||
int32_t ydimen;
|
||||
static int32_t wx1, wy1, wx2, wy2;
|
||||
intptr_t frameoffset;
|
||||
|
@ -14867,8 +14868,8 @@ void setview(int32_t x1, int32_t y1, int32_t x2, int32_t y2)
|
|||
xdimenrecip = divscale32(1L,xdimen);
|
||||
ydimen = (y2-y1)+1;
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
fxdimen = (float) xdimen;
|
||||
#ifdef USE_OPENGL
|
||||
fydimen = (float) ydimen;
|
||||
#endif
|
||||
setaspect_new();
|
||||
|
|
|
@ -24,6 +24,10 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern uint8_t basepalcount;
|
||||
extern uint8_t curbasepal;
|
||||
|
||||
|
@ -32,6 +36,7 @@ extern int16_t bunchfirst[MAXWALLSB], bunchlast[MAXWALLSB];
|
|||
extern int16_t maskwall[MAXWALLSB], maskwallcnt;
|
||||
extern spritetype *tspriteptr[MAXSPRITESONSCREEN + 1];
|
||||
extern int32_t xdimen, xdimenrecip, halfxdimen, xdimenscale, xdimscale, ydimen;
|
||||
extern float fxdimen;
|
||||
extern intptr_t frameoffset;
|
||||
extern int32_t globalposx, globalposy, globalposz, globalhoriz;
|
||||
extern float fglobalposx, fglobalposy, fglobalposz;
|
||||
|
@ -232,4 +237,8 @@ static inline void set_globalpos(int32_t x, int32_t y, int32_t z)
|
|||
globalposz = z, fglobalposz = (float)z;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ENGINE_PRIV_H */
|
||||
|
|
|
@ -129,7 +129,7 @@ static double guo, gux, guy; //Screen-based texture mapping parameters
|
|||
static double gvo, gvx, gvy;
|
||||
static double gdo, gdx, gdy;
|
||||
float fcosglobalang, fsinglobalang;
|
||||
float fxdim, fydim, fxdimen, fydimen, fviewingrange;
|
||||
float fxdim, fydim, fydimen, fviewingrange;
|
||||
static int32_t preview_mouseaim=0; // when 1, displays a CROSSHAIR tsprite at the _real_ aimed position
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#define _WIN32_WINNT 0x0501
|
||||
#include <malloc.h>
|
||||
#include <windows.h>
|
||||
#include "rawinput.h"
|
||||
#include "winlayer.h"
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
# define bREFIID &
|
||||
#endif
|
||||
|
||||
#include <malloc.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <InitGuid.h>
|
||||
#endif
|
||||
|
@ -2800,8 +2802,10 @@ static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp)
|
|||
if (!Bstrcmp(glinfo.vendor,"Microsoft Corporation")) err = 1;
|
||||
else if (!Bstrcmp(glinfo.vendor,"SiS")) err = 1;
|
||||
else if (!Bstrcmp(glinfo.vendor,"3Dfx Interactive Inc.")) err = 1;
|
||||
#ifdef POLYMER
|
||||
else if (!Bstrcmp(glinfo.vendor, "Intel"))
|
||||
pr_ati_fboworkaround = 1;
|
||||
#endif
|
||||
else
|
||||
{
|
||||
if (!Bstrcmp(glinfo.vendor,"ATI Technologies Inc."))
|
||||
|
@ -2829,8 +2833,10 @@ static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef POLYMER
|
||||
if (pr_ati_fboworkaround)
|
||||
initprintf("Enabling Intel/ATI FBO color attachment workaround.\n");
|
||||
#endif
|
||||
|
||||
if (!forcegl && err)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue