Commit graph

18 commits

Author SHA1 Message Date
ZZYZX
7b5d4a03e9 Write uniform data into separate structures 2020-01-02 21:32:08 +02:00
Magnus Norddahl
10702928ae Only call seterror if the context creation fails 2020-01-02 20:21:38 +01:00
Magnus Norddahl
6450bdcc67 Improve error message if OpenGL context creation fails 2020-01-02 19:45:45 +01:00
ZZYZX
0ba5870dfc Merge branch 'shadercompiler' 2020-01-02 20:22:49 +02:00
Magnus Norddahl
d71da60c40 Lower depth bits requirement 2020-01-02 19:07:31 +01:00
Magnus Norddahl
82db74b17a Fix profile not being used 2020-01-02 18:55:53 +01:00
Magnus Norddahl
d49a6e228b Work a little harder to find an usable OpenGL version 2020-01-02 18:53:37 +01:00
ZZYZX
6374b498ab Added GLSL shader preprocessor 2020-01-01 22:41:04 +02:00
Magnus Norddahl
ca3fa76e32 Rename the sampler filters so that they use the same naming convention as modern graphics APIs 2019-12-29 18:54:22 +01:00
Magnus Norddahl
b466035bc8 Fix wrong mipmapping filtering and missing anisotropy 2019-12-26 02:02:53 +01:00
Magnus Norddahl
459742c840 Fix double delete bug 2019-12-26 01:09:31 +01:00
Magnus Norddahl
e68da4331a Also clean up textures not created by SetPixels 2019-12-26 00:46:05 +01:00
Magnus Norddahl
994eda4852 Fix shutdown crash caused by C# finalizers deleting texture objects after renderdevice already left the building 2019-12-26 00:37:47 +01:00
ZZYZX
734157256e Improved memory usage by loading textures directly into OpenGL 2019-12-25 19:08:57 +02:00
ZZYZX
a34055a0d3 Fixed: do a bit less radical deallocation in cube textures 2019-12-25 13:43:55 +02:00
ZZYZX
d57d73ce78 Fixed: memory buffer was not cleared after successfully transferring texture data to OpenGL (resolves #327) 2019-12-25 13:39:55 +02:00
ZZYZX
054a30dd1b Fixed: textures of null size should not be allowed (resolves #324) 2019-12-25 13:32:11 +02:00
Magnus Norddahl
ef6d217623 Rearrange the code slightly so it is easier to add other backends 2019-12-23 20:09:38 +01:00