quakespasm/Quake
Eric Wasylishen 5b158a2807 VID_SetMode: for SDL2, move GL context creation to be after the window is shown.
This matches the order used in the SDL2 sample applications included with the library.

Seems to fix an issue on Windows 10 with DPI scaling 150%, launching QS 0.90.1 with  "-width 1920 -height 1080 -fullscreen", and you get a horrible black flicker every few frames.
see http://celephais.net/board/view_thread.php?id=60452&start=1587

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1249 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-07 20:36:43 +00:00
..
anorm_dots.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
anorms.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
arch_def.h arch_def.h: update from uhexen2. 2014-07-11 07:06:15 +00:00
bgmusic.c snd_flac.c, snd_mpg123.c: fix incorrect usage of decoder function 2015-02-19 08:37:13 +00:00
bgmusic.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
bspfile.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
build_cross_osx-sdl2.sh Makefile.darwin: target 10.5 when building for x86 against SDL2. 2014-09-17 11:00:28 +00:00
build_cross_osx.sh - Makefile.darwin: -mmacosx-version-min also needs to be among 2012-09-03 21:21:04 +00:00
build_cross_win32-sdl2.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
build_cross_win32.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
build_cross_win64-sdl2.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
build_cross_win64.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
cd_null.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cd_sdl.c sdl: Make our error checking for SDL_Init(SubSystem) consistent with the SDL wiki/test programs. 2014-10-18 16:33:01 +00:00
cdaudio.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cfgfile.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cfgfile.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
chase.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cl_demo.c Add filename tab-completion for "playdemo" and "record" commands 2015-05-30 02:28:58 +00:00
cl_input.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cl_main.c Convert to Con_DWarning (developer 1 only) the remaining two "exceeded standard limit" warnings. 2015-05-29 18:33:08 +00:00
cl_parse.c Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
cl_tent.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
client.h Support pausing demo playback. 2014-12-08 19:30:36 +00:00
cmd.c prevent a possible buffer overflow in Cbuf_Execute (an old q1/q2 issue this was.) 2015-08-23 09:56:31 +00:00
cmd.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
common.c common.c (MSG_ReadString): replaced MSG_ReadChar with MSG_ReadByte 2015-08-05 14:47:25 +00:00
common.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
console.c constify arg_completion_type_t->command 2015-08-23 09:51:35 +00:00
console.h Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
crc.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
crc.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
cvar.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cvar.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
detect.sh Updated support for building the OSX versions using Makefile.darwin. Do 2012-08-16 04:51:41 +00:00
draw.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
gl_draw.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
gl_fog.c Fog_ParseWorldspawn: before reading the worldspawn value, clear the fog rgb color back to the default value (0.3). 2014-11-03 21:27:27 +00:00
gl_mesh.c gl_mesh.c: add missing casts so that C++ compilers won't fail 2015-08-23 09:55:02 +00:00
gl_model.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
gl_model.h new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
gl_refrag.c Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
gl_rlight.c RecursiveLightPoint: add casts to double to force 64-bit precision, fixes zombie at the start of jam3_ericw.bsp from incorrectly being lit up in SSE builds. 2015-01-26 06:46:53 +00:00
gl_rmain.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
gl_rmisc.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
gl_screen.c SCR_TileClear: fix for GLSL gamma causing the tiled screen border to turn white, if you use "sizedown" to show the border. 2015-06-15 21:17:45 +00:00
gl_sky.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
gl_texmgr.c TexMgr_ReloadImages: attempt to fix random texture recoloring after mode change (http://sourceforge.net/p/quakespasm/bugs/10/) 2015-09-04 09:22:33 +00:00
gl_texmgr.h VID_Restart: delete all GL textures before calling VID_SetMode. SDL2 reuses the gl context when changing modes, so the TexMgr_ReloadImages call after the mode change was leaking textures. 2015-01-26 20:18:39 +00:00
gl_vidsdl.c VID_SetMode: for SDL2, move GL context creation to be after the window is shown. 2015-09-07 20:36:43 +00:00
gl_warp.c r_oldwater: change default to 0 (which means use the higher quality fitzquake render-to-texture water by default, instead of the lower quality glquake water). 2015-01-17 00:54:09 +00:00
gl_warp_sin.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
glquake.h new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
host.c Add filename tab-completion for "playdemo" and "record" commands 2015-05-30 02:28:58 +00:00
host_cmd.c Modlist_Init: (win32) don't list "." as a mod. 2015-06-03 03:54:47 +00:00
image.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
image.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
in_sdl.c in_sdl: change DBEUG_INPUT preprocessor check to an "in_debugkeys" cvar to make it easier to debug unusual keyboards 2014-10-14 18:31:49 +00:00
input.h input: Rework the text/non-text input mode handling. 2014-09-23 19:10:02 +00:00
keys.c keys.c: Add keynames BACKQUOTE and TILDE, to facilitate (un)binding them from the console. 2014-10-15 17:32:40 +00:00
keys.h in_sdl.c, key.c: Fixes agreed on with Sander: 2014-10-14 03:30:44 +00:00
main_sdl.c minor tidy-ups 2014-10-18 17:00:34 +00:00
Makefile remove SDL_net support which had been unsupported for some time 2014-09-20 20:37:35 +00:00
Makefile.darwin change windows makefiles so that they aren't for cross-building by default; 2015-03-02 22:04:26 +00:00
Makefile.w32 fix windows linkage after r1200 2015-04-14 18:15:09 +00:00
Makefile.w64 fix windows linkage after r1200 2015-04-14 18:15:09 +00:00
mathlib.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
mathlib.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
menu.c in_sdl.c, key.c: Fixes agreed on with Sander: 2014-10-14 03:30:44 +00:00
menu.h Rename some (recently added) functions. 2014-10-08 18:30:17 +00:00
modelgen.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
net.h constify NET_QSocketGetTime() and NET_QSocketGetAddressString() 2015-04-01 09:30:10 +00:00
net_bsd.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_defs.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_dgrm.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_dgrm.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_loop.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_loop.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_main.c constify NET_QSocketGetTime() and NET_QSocketGetAddressString() 2015-04-01 09:30:10 +00:00
net_sys.h sync a few minor stuff with uhexen2 svn 2014-10-30 18:00:06 +00:00
net_udp.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_udp.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_win.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wins.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wins.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wipx.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wipx.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pl_linux.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pl_osx.m copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pl_win.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
platform.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pr_cmds.c Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
pr_comp.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pr_edict.c Move more spammy message from "developer 1" to "developer 2": 2015-05-25 03:39:05 +00:00
pr_exec.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
progdefs.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
progdefs.q1 initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
progs.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
protocol.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
q_ctype.h replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
q_sound.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
q_stdinc.h a few more minor stuff from uhexen2 svn 2014-10-31 13:03:20 +00:00
qs_bmp.h Simplify the linux icon transparency setting. 2012-09-25 03:07:33 +00:00
quakedef.h bumped version to 0.91.0 for future development 2015-06-15 08:21:14 +00:00
quakespasm.pak quakespasm.pak: Another z-fighting workaround. 2014-11-02 20:06:35 +00:00
r_alias.c r_alias.c, r_sprite.c: print the model name in the "no such skin" (r_alias.c) and "no such frame" (r_sprite.c) developer messages 2015-08-31 18:36:38 +00:00
r_brush.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
r_part.c R_DrawParticles: exit early if there is nothing to draw, avoid a useless glBegin() glEnd() pair. 2015-04-16 23:57:39 +00:00
r_sprite.c r_alias.c, r_sprite.c: print the model name in the "no such skin" (r_alias.c) and "no such frame" (r_sprite.c) developer messages 2015-08-31 18:36:38 +00:00
r_world.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
render.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
resource.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
sbar.c sbar.c: don't skip redrawing the status bar if we're doing glsl gamma, since it would get gamma correction applied multiple times. 2015-02-04 03:57:06 +00:00
sbar.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
screen.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
server.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
snd_codec.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
snd_codec.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_codeci.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_dma.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
snd_flac.c snd_flac.c, snd_mpg123.c: fix incorrect usage of decoder function 2015-02-19 08:37:13 +00:00
snd_flac.h added flac music support. 2013-07-21 14:02:06 +00:00
snd_mem.c Move more spammy message from "developer 1" to "developer 2", continued: 2015-05-25 18:38:37 +00:00
snd_mikmod.c snd_mikmod.c: compile-time sanity checks for libmikmod version. 2013-12-27 12:00:21 +00:00
snd_mikmod.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mix.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
snd_modplug.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_modplug.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mp3.c snd_mp3.c: applied a patch to skip APEv2 tags 2015-07-13 06:37:02 +00:00
snd_mp3.h * snd_mpg123.c: added new codec for mp3 playback using libmpg123 as 2011-02-14 20:02:52 +00:00
snd_mpg123.c snd_flac.c, snd_mpg123.c: fix incorrect usage of decoder function 2015-02-19 08:37:13 +00:00
snd_opus.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_opus.h merged the opus codec support patch 2013-07-18 07:03:11 +00:00
snd_sdl.c snd_sdl.c: remove superfluous SDL_PauseAudio() and SDL_LockAudio() calls from the Shutdown() proc. 2015-02-27 14:01:23 +00:00
snd_umx.c snd_umx: minor update from umr. minor correction to fshandle offset. 2014-02-11 20:00:35 +00:00
snd_umx.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_vorbis.c sync a few minor stuff with uhexen2 svn 2014-10-30 18:00:06 +00:00
snd_vorbis.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
snd_wave.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_wave.h Backported external music files support using decoder libraries and the 2011-01-05 19:50:43 +00:00
spritegn.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
strl_fn.h added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
strlcat.c added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
strlcpy.c added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
sv_main.c Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
sv_move.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sv_phys.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sv_user.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sys.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sys_sdl_unix.c add new numcpus field to the quakeparms structure and detect it during Sys_Init time 2014-11-03 09:10:18 +00:00
sys_sdl_win.c sys_sdl_win.c: fix calling conventions for SetProcessDpiAware[ness]. Was getting a runtime error about that when compiling with VS2015. 2015-09-07 20:36:39 +00:00
vid.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
view.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
view.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
wad.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
wad.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
world.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
world.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
wsaerror.h * arch_def.h, net_sys.h, wsaerror.h: New headers, adapted from uhexen2. 2010-06-21 10:55:21 +00:00
zone.c "flush" command: Call a wrapper around Cache_Flush that also does GLMesh_LoadVertexBuffers. 2015-06-15 22:52:29 +00:00
zone.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00