mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
Conflicts: .gitignore CMakeLists.txt
This commit is contained in:
commit
45070114e8
5 changed files with 26 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -27,3 +27,4 @@
|
||||||
/tools/lemon/build
|
/tools/lemon/build
|
||||||
/tools/re2c/build
|
/tools/re2c/build
|
||||||
/wadsrc*/*.pk3
|
/wadsrc*/*.pk3
|
||||||
|
/build_vc2013
|
||||||
|
|
|
@ -92,9 +92,14 @@ if( MSVC )
|
||||||
# Set floating point model to fast or the GL render will suffer for it.
|
# Set floating point model to fast or the GL render will suffer for it.
|
||||||
set( ALL_C_FLAGS "/GF /Gy /GR- /fp:fast" )
|
set( ALL_C_FLAGS "/GF /Gy /GR- /fp:fast" )
|
||||||
|
|
||||||
# Avoid CRT DLL dependancies in release builds
|
# Avoid CRT DLL dependancies in release builds, optionally generate assembly output for checking crash locations.
|
||||||
set( REL_C_FLAGS "/MT /Oy /Oi" )
|
option( ZDOOM_GENERATE_ASM "Generate assembly output." OFF )
|
||||||
|
if( ZDOOM_GENERATE_ASM )
|
||||||
|
set( REL_C_FLAGS "/MT /Oy /Oi /FAcs" )
|
||||||
|
else( ZDOOM_GENERATE_ASM )
|
||||||
|
set( REL_C_FLAGS "/MT /Oy /Oi" )
|
||||||
|
endif( ZDOOM_GENERATE_ASM )
|
||||||
|
|
||||||
# Debug allocations in debug builds
|
# Debug allocations in debug builds
|
||||||
set( DEB_C_FLAGS "/D _CRTDBG_MAP_ALLOC /MTd" )
|
set( DEB_C_FLAGS "/D _CRTDBG_MAP_ALLOC /MTd" )
|
||||||
|
|
||||||
|
|
|
@ -538,12 +538,14 @@ message( STATUS "Fluid synth libs: ${FLUIDSYNTH_LIBRARIES}" )
|
||||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${FMOD_LIBRARY}" )
|
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${FMOD_LIBRARY}" )
|
||||||
include_directories( "${ZLIB_INCLUDE_DIR}" "${FMOD_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" )
|
include_directories( "${ZLIB_INCLUDE_DIR}" "${FMOD_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" )
|
||||||
|
|
||||||
if( FLUIDSYNTH_FOUND )
|
if( NOT DYN_FLUIDSYNTH)
|
||||||
if( NOT DYN_FLUIDSYNTH)
|
if( FLUIDSYNTH_FOUND )
|
||||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${FLUIDSYNTH_LIBRARIES}" )
|
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${FLUIDSYNTH_LIBRARIES}" )
|
||||||
include_directories( "${FLUIDSYNTH_INCLUDE_DIR}" )
|
include_directories( "${FLUIDSYNTH_INCLUDE_DIR}" )
|
||||||
endif( NOT DYN_FLUIDSYNTH )
|
endif( FLUIDSYNTH_FOUND )
|
||||||
endif( FLUIDSYNTH_FOUND )
|
else( NOT DYN_FLUIDSYNTH )
|
||||||
|
set( ZDOOM_LIBS ${ZDOOM_LIBS} ${CMAKE_DL_LIBS} )
|
||||||
|
endif( NOT DYN_FLUIDSYNTH )
|
||||||
|
|
||||||
# OpenGL on OS X: GLEW include directory
|
# OpenGL on OS X: GLEW include directory
|
||||||
|
|
||||||
|
|
|
@ -629,7 +629,9 @@ bool FMODSoundRenderer::IsValid()
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
#ifndef FACILITY_VISUALCPP
|
||||||
#define FACILITY_VISUALCPP ((LONG)0x6d)
|
#define FACILITY_VISUALCPP ((LONG)0x6d)
|
||||||
|
#endif
|
||||||
#define VcppException(sev,err) ((sev) | (FACILITY_VISUALCPP<<16) | err)
|
#define VcppException(sev,err) ((sev) | (FACILITY_VISUALCPP<<16) | err)
|
||||||
|
|
||||||
static int CheckException(DWORD code)
|
static int CheckException(DWORD code)
|
||||||
|
|
|
@ -842,10 +842,15 @@ HANDLE WriteTextReport ()
|
||||||
Writef (file,
|
Writef (file,
|
||||||
"\r\nFPU State:\r\n ControlWord=%04x StatusWord=%04x TagWord=%04x\r\n"
|
"\r\nFPU State:\r\n ControlWord=%04x StatusWord=%04x TagWord=%04x\r\n"
|
||||||
" ErrorOffset=%08x\r\n ErrorSelector=%08x\r\n DataOffset=%08x\r\n DataSelector=%08x\r\n"
|
" ErrorOffset=%08x\r\n ErrorSelector=%08x\r\n DataOffset=%08x\r\n DataSelector=%08x\r\n"
|
||||||
" Cr0NpxState=%08x\r\n\r\n",
|
// Cr0NpxState was renamed in recent Windows headers so better skip it here. Its meaning is unknown anyway.
|
||||||
|
//" Cr0NpxState=%08x\r\n"
|
||||||
|
"\r\n"
|
||||||
|
,
|
||||||
(WORD)ctxt->FloatSave.ControlWord, (WORD)ctxt->FloatSave.StatusWord, (WORD)ctxt->FloatSave.TagWord,
|
(WORD)ctxt->FloatSave.ControlWord, (WORD)ctxt->FloatSave.StatusWord, (WORD)ctxt->FloatSave.TagWord,
|
||||||
ctxt->FloatSave.ErrorOffset, ctxt->FloatSave.ErrorSelector, ctxt->FloatSave.DataOffset,
|
ctxt->FloatSave.ErrorOffset, ctxt->FloatSave.ErrorSelector, ctxt->FloatSave.DataOffset,
|
||||||
ctxt->FloatSave.DataSelector, ctxt->FloatSave.Cr0NpxState);
|
ctxt->FloatSave.DataSelector
|
||||||
|
//, ctxt->FloatSave.Cr0NpxState
|
||||||
|
);
|
||||||
|
|
||||||
for (i = 0; i < 8; ++i)
|
for (i = 0; i < 8; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue