Commit Graph

33 Commits

Author SHA1 Message Date
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
hiker
be461b7a39 Try to fix crash at startup. 2014-11-15 12:05:14 +11:00
hiker
2ec5c3765a Added a config file which can be used to disable certain graphical
options dependeing on card, os, driver version.
2014-11-15 10:06:54 +11:00