Zack Middleton
8eeac09569
Merge branch 'master' into game/eliteforce
2015-08-12 17:21:52 -05:00
Tim Angus
db941dcb5f
Merge pull request #138 from Pan7/SDL_Swap
...
SDL_GL_SetSwapInterval() check
2015-07-26 19:49:49 +01:00
Tim Angus
793708a010
Merge pull request #137 from Pan7/SDL_display
...
SDL_GetWindowDisplayIndex() check2
2015-07-26 19:49:04 +01:00
Pan7
525eac0d99
SDL_GL_SetSwapInterval() check
2015-07-26 20:23:48 +02:00
Pan7
56808ab51f
SDL_GetWindowDisplayIndex() check2
2015-07-26 19:46:07 +02:00
Tim Angus
c35e0faffb
Merge pull request #136 from Pan7/SDL_NULL
...
SDL_CreateWindow NULL check
2015-07-26 15:50:54 +01:00
Pan7
4b176297e2
Added SDL_GetError()
2015-07-26 15:41:41 +02:00
Pan7
6fb47ce9bf
SDL_CreateWindow NULL check
2015-07-26 13:54:29 +02:00
Pan7
9694e93fd2
SDL_GetWindowDisplayIndex check
2015-07-26 13:03:47 +02:00
Tim Angus
605dfabb94
Merge pull request #132 from Pan7/SDL_Init
...
SDL_Init zero check
2015-07-25 11:54:12 +01:00
Pan7
2a38bca931
SDL_Init zero check
2015-07-24 22:56:00 +02:00
Zack Middleton
6b9a3a47db
Merge branch 'master' into game/eliteforce
...
Conflicts:
code/renderergl1/tr_main.c
code/renderergl2/tr_main.c
2015-07-09 18:42:11 -05:00
Zack Middleton
da8a74d734
Fix variable declaration for C89 compilers
2015-06-28 16:29:10 -05:00
Tim Angus
61825d8e5f
Check SDL_GetNumDisplayModes return value for errors
2015-06-28 18:01:03 +01:00
Zack Middleton
73de855c27
Merge branch 'master' into game/eliteforce
...
Conflicts:
code/client/cl_main.c
2015-06-24 16:48:46 -05:00
Zack Middleton
e5af084211
Remove erroneous new line from error message
2015-06-12 13:08:10 -05:00
Simon McVittie
df7dab721f
Don't crash if more than 128 modes are available
2015-01-07 23:39:12 +00:00
Zack Middleton
6557800707
Merge branch 'master' into game/eliteforce
2014-12-02 17:40:09 -06:00
Zack Middleton
1d016e6ff5
Clear window buffer when it's created
...
When starting the game in windowed mode, the window buffer used whatever
was on the screen before running the game. Kind of like you could see
through the window, but it doesn't update what happens behind it.
It makes it look like something is broken or non-responsive.
So clear the window opengl buffer to black.
Credit to theinvsblman for the code.
2014-11-07 21:50:00 -06:00
Zack Middleton
ccd93c127b
Port Elite Force renderer changes to OpenGL2
...
Appling the diff to renderergl2 mostly worked.
Had to change GLimp_HaveExtension to use GL_EXTENTIONS
directly because Elite Forces GL2 requires an extension that didn't fit in (the smaller than Q3)
glConfig.extensions_string.
Had to set ambientLight for RF_FULLBRIGHT, GL2 doesn't use ambientLightInt.
Made the RF_FORCE_ENT_ALPHA code change pStage->stateBits because the stateBits
are read a lot, whereas in GL1 it's done as an expression and passed to GL_State.
Copied from Spearmint.
There are a few issues; holodeck doors are missing and parts of light grid are black (???).
2014-10-29 09:00:23 -05:00
Zack Middleton
24923615b7
Don't add duplicate resolutions to r_availableModes
...
SDL can give the same resolution with different refresh rates.
The refresh rate isn't used, so only add resolution to mode list once.
2014-09-20 19:23:33 -05:00
Zack Middleton
344ff23164
Fix multisampling on X11
...
Setting SDL_GL_ACCELERATED_VISUAL was disabled for ioq3 SDL 1.2
for other reasons. However, it causes creating GL context to fail
if multisampling is enabled on X11 for both SDL1.2 and SDL2.
Tested using nVidia proprietary driver on Debian 7.
2014-03-17 12:24:59 -05:00
Zack Middleton
8455b5a833
Don't crash when fail to create SDL window
2014-03-15 17:54:00 -05:00
Zack Middleton
ed087bb89e
Merge branch 'master' into sdl2
2014-02-07 23:24:12 -06:00
Zack Middleton
7c0491d7fd
Add latch to r_centerWindow and r_allowResize
2013-12-06 23:42:23 -06:00
Zack Middleton
8c1d3c635c
Use bundle icon on Mac OS X instead of internal 32x32 window icon
2013-10-19 01:54:58 -05:00
cmf028
d7444b8ca1
Don't set the window title twice
2013-09-23 12:21:20 -05:00
Tim Angus
58b8cfa0b3
Various fixes from Fuma
2013-09-15 23:54:52 +01:00
Tim Angus
fb9270306b
Fix initial window position being top left
2013-08-29 19:15:35 +01:00
Tim Angus
bde7665462
Merge branch 'master' into sdl2
...
Conflicts:
code/sdl/sdl_input.c
2013-08-16 23:34:08 +01:00
Zack Middleton
81909bb266
Fix text getting appended to vid_restart in command buffer
...
I was getting unknown command "vid_restart-button2" warning on OSX when trying to use alt-return to toggle fullscreen.
2013-08-03 17:40:50 -05:00
Tim Angus
d9d52f0306
Merge branch 'master' into sdl2
...
Conflicts:
Makefile
code/renderercommon/qgl.h
code/renderergl1/tr_local.h
code/sdl/sdl_glimp.c
2013-05-08 14:27:15 +01:00
Tim Angus
2da0fd6de8
Add renderercommon/tr_common.h
2013-02-16 20:58:04 +00:00
Tim Angus
f6fb9eb602
renderer -> renderergl1, rend2 -> renderergl2
2013-02-15 23:46:37 +00:00
Tim Angus
51df89ab13
Remove the SMP renderer feature
2013-01-24 22:53:08 +00:00
Tim Angus
9b8711d2e1
Fix wacky patch for r_ignorehwgamma
2013-01-19 21:39:35 +00:00
Tim Angus
3105d62027
Allow hardware gamma, in theory
2013-01-18 21:53:37 +00:00
Tim Angus
f478761e07
Use SDL 2 instead of SDL 1.2
2013-01-17 18:20:03 +00:00
Zack Middleton
0167b439c9
Don't include client.h in sdl_glimp.c as it is part of the external renderer lib.
2012-10-13 23:15:02 +00:00
Zack Middleton
1aaf9d3e7b
Use correct fallback height and width for r_mode -2.
2012-08-27 15:38:55 +00:00
Zack Middleton
42d3ff8d1d
Added r_mode -2, uses desktop resolution. Bug #5408 . Patch by Andrei Drexler and myself.
2012-08-27 14:52:41 +00:00
Thilo Schulz
1af9c636a5
r_ignorehwgamma 1 does not actually turn on software gamma ( #5511 ) - patch by Serge Belyshev
2012-07-01 17:01:30 +00:00
Zack Middleton
1469df546e
Reverted r2145 per Timbo's suggestion.
2011-08-11 20:57:39 +00:00
Zack Middleton
1609d1c42b
- Added r_mode -2 for using display resolution.
...
- Changed q3_ui's very high video settings use display resolution.
2011-08-11 05:14:42 +00:00
Thilo Schulz
40dfcee06e
Modular rendering system. Patch by use.less01
...
This might break MSVC builds. I'll take care of it later
2011-08-01 01:19:55 +00:00
Thilo Schulz
4b9ab42c2c
Remove newlines from Com_Error calls, patch by DevHC
2011-05-14 14:32:43 +00:00
Thilo Schulz
a56e448850
Add minimize command ( #4531 )
2011-02-10 19:21:13 +00:00
Tim Angus
005f870ebe
* Sys_Dialog for more user friendly error reporting
...
* (bug #3932 ) Recovery from bad video settings
2010-02-15 16:20:33 +00:00
Tim Angus
c98df5ad58
* Make window centering optional, defaulting to off
2009-11-06 15:34:05 +00:00
Tim Angus
568cf2732a
* Fix to GLimp_DetectAvailableModes not sorting the first returned mode
2009-11-05 20:29:26 +00:00