Commit Graph

52 Commits

Author SHA1 Message Date
Deve
78bb9e78ac Fixed version number for nvidia gles.
It uses gl version string: OpenGL ES 3.2 NVIDIA 384.111
2018-02-25 22:40:15 +01:00
Deve
458ffd4617 Allow to force pot textures in graphical restrictions 2018-01-16 22:50:18 +01:00
Benau
54c7914cb5 Update graphical restrictions
Mesa 17.4 will use the correct normalization forumla

Disable GLSL on intel HD2000 / HD3000 due to broken opengl 3.3 support
2018-01-08 15:55:28 +08:00
Benau
7797115867 Add SP for correct normal and easier shader system 2017-12-25 14:00:10 +08:00
Benau
1b70144c80 Reserve a graphics restriction for hardware skinning 2017-10-20 14:00:38 +08:00
Deve
1a9cf6a46f Set max texture size to 256 for Raspberry Pi 2017-10-18 21:13:23 +02:00
Deve
9ec06f122c Allow to filter graphical restrictions by vendor 2017-10-18 20:51:26 +02:00
Benau
88e15147b8 Merge remote-tracking branch 'origin/win-64bit' 2017-10-17 00:55:22 +08:00
Deve
ae4e302741 Add a way to run STK without srgb framebuffer 2017-10-09 21:18:15 +02:00
Deve
6465cc4569 Minor fix in graphics restrictions.
Some android restrictions are very basic, eg. UniformBufferObject is disabled on whole platform. So make sure that it's not used on any exotic OS.
2017-08-23 21:18:45 +02:00
hiker
f3d56b37df Merge branch 'master' into win-64bit 2017-08-16 17:29:57 +10:00
Deve
d44802a482 Add a workaround for some qualcomm devices on android 4.4 2017-07-11 00:37:31 +02:00
Deve
70c481cb26 Add a possibility to set android version in graphics restrictions. 2017-07-10 22:54:38 +02:00
hiker
f2138e062d Tried to fix all 64-bit related compiler warnings triggered from files
in graphics.
2017-04-08 23:25:33 +10:00
Deve
fb0a54278a Fixed possible crash.
STK could crash when invalid graphics restriction name was set in graphics_restrictions.xml file.
It's because of wrong while (m_names_of_restrictions[i] != NULL) condition.
2017-01-05 00:28:16 +01:00
auria.mg
7a6e6cb6a4 Attempt to imporove AMD driver version detection 2016-12-29 21:43:19 -05:00
deve
7a82a8d2c6 Fixed compiler warning 2016-10-05 10:56:40 +02:00
deve
bd42f2c2df Fixed rare case that anisotropic filtering feature is not available in graphics drivers. 2016-10-05 10:50:20 +02:00
Deve
f2d354d759 Fixed graphics restrictions on android 2016-09-17 03:55:50 +02:00
Deve
21d62ed405 Check availability of color buffer float extension in GLES renderer 2016-09-17 03:55:50 +02:00
Deve
d05cff09c8 Add a graphics restriction for BGRA format on android.
It causes issues with particles transparency.
2016-09-17 03:55:50 +02:00
Deve
b0c0af8c46 Check if drivers support BGRA texture format and fallback to RGBA 2016-09-11 22:35:54 +02:00
Deve
c7d970b745 Allow to set ForceLegacyDevice in graphics restrictions 2016-08-20 08:13:17 +02:00
Deve
0f7976e5f8 Merge branch 'master' into gles 2016-07-11 23:23:02 +02:00
deve
e42673c4ac Read mesa version in better way.
It solves the problem with OpenGL ES, because there is one more word in the version string:
OpenGL version string: OpenGL ES 3.0 Mesa 11.2.2
2016-07-05 12:17:40 +02:00
Deve
41283ad408 Added a check for GL_ARB_explicit_attrib_location extension.
It is enabled by default for OpenGL 3.3, but we need it for some of our shaders in render_geometry.cpp (which are OpenGL >= 3.2) and also for InstancedColorizeShader.
2016-05-20 20:12:34 +02:00
Deve
edfc7d285c Fixed shadows and GI for mesa drivers.
The check for GL_ARB_geometry_shader4 doesn't have sense at all because we don't use this extension and our geometry shaders use functionality which is available in core OpenGL 3.2.

The reason that it wasn't working for older mesa versions must be a bug in mesa or maybe missing other functionality (but not GL_ARB_geometry_shader4).

I checked it with mesa 11.2 and current git version and it works fine on intel, nouveau and with software rendering.

It needs some testing because it potentially affects all drivers with OpenGL >= 3.2 on every platform.

If someone could test it with Radeon drivers, I would be really happy to enable it in upcoming release, at least on linux.
2016-05-18 22:19:31 +02:00
Deve
9eb6694d61 Check for arrays of arrays extension, which we use in compute shaders 2015-12-20 13:46:41 +01:00
Deve
80d36208f1 Added ugly hack, which forces srgb-capable framebuffer creation for intel drivers on linux 2015-12-11 19:18:14 +01:00
hiker
824b6906c1 Fixed compiler warning. 2015-05-08 13:59:19 +10:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
hiker
626ae83f43 Added unit test for #1793. 2015-02-19 16:21:00 +11:00
Vincent Lejeune
1a861c742c Add a GR for GI in central_settings 2015-02-18 23:42:42 +01:00
hiker
5f9e4086af Fixed #1476 (well, better a work around intel bugs). 2015-02-19 09:24:23 +11:00
hiker
98bf6ccef0 Added test cases for problems discovered with version numbers in #1923 (which
have been fixed by now in 07dffdc).
2015-01-27 07:59:42 +11:00
Deve
07dffdcbc2 Fixed bug with comparing versions 2015-01-25 21:36:24 +01:00
Vincent Lejeune
29f19711db Add a rule in graphic restriction for advanced pipeline 2015-01-23 00:56:14 +01:00
hiker
9ee520e95b Fixed version recognition for some amd/ati cards; added test cases. 2015-01-22 16:43:25 +11:00
hiker
678eeac836 Disable highdef textures on intel cards on windows. 2015-01-21 09:15:41 +11:00
hiker
79df2151e9 Add a popup window to be shown first if it is detected that
the driver is too old.
2015-01-19 10:21:41 +11:00
hiker
a45867244f Added unit testing for all currently know variations of mesa version
numbers. Fixed all cases in which an incorrect version was detected
previously.
2015-01-13 16:49:10 +11:00
hiker
526b38fc2a Added some kind of unit testing for version numbers in graphics
restrictions. It's only doing asserts for the tests :)  Use
--unit-testing command line switch.
2015-01-08 10:05:19 +11:00
Vincent Lejeune
798c2b5355 Forgot a "," 2015-01-07 01:55:22 +01:00
Vincent Lejeune
9b6a1dd69d Add support for AMD in graphic restrictions system 2015-01-06 23:56:50 +01:00
Vincent Lejeune
02cf7afcf3 Use graphic restrictions system for all CVS query 2015-01-06 23:46:36 +01:00
hiker
399bdca947 Simplified implementation of graphical restrictions. 2015-01-07 08:03:49 +11:00
hiker
949c16cfb0 Changed GrpahicsRestriction API to just use one isDisabled(...) function. 2015-01-06 17:09:16 +11:00
hiker
f4c9724fa9 Detect mesa version. 2014-12-22 07:59:51 +11:00
hiker
e05af1cd0b Added support for "<" relations in graphical restrictions, fixed
compiler warnings.
2014-12-10 14:18:26 +11:00
hiker
3ba2470619 Added support to detect version numbers on nvidia. 2014-12-02 17:11:29 +11:00