95106b2d9b
Fixes crash in Atlas when switching from the Actor viewer. Fixes #6524
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4732
This was SVN commit r27041.
2022-08-10 17:17:24 +00:00
9d2275e26b
Fix assertion when trying to draw a line with one point. This would trigger an ensure if one enabled the unitmotion overlay.
...
Patch by: @vladislavbelov
This was SVN commit r27016.
2022-07-25 20:08:03 +00:00
ec723428d1
Logic fix for very high shadows on very large screens.
...
ON large screens like 5120x1440 calculated shadow map was 32768. That
was 16x more than high setting, 32x more than medium setting and 64x
more than low setting.
After this change shadow map sizes using very high setting by resolution
will be following:
1920x1080 - 4096
2560x1440 - 4096
3840x1440 - 4096
5120x1440 - 8192
3840x2160 - 4096
7680x4320 - 8192
Patch by: @karmux
Reviewed by: @vladislavbelov , @Stan
Differential Revision: https://code.wildfiregames.com/D4723
This was SVN commit r26983.
2022-06-23 17:04:13 +00:00
9845a99f77
Adds EGL support for Wayland.
...
Tested By: Freagarach, Mentula, phosit
Differential Revision: https://code.wildfiregames.com/D4642
This was SVN commit r26929.
2022-06-09 21:09:32 +00:00
12dfe2ce55
Use CVector2D instead of float arrays for TexturedLineRData
...
Reviewed by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4688
This was SVN commit r26924.
2022-06-06 21:46:37 +00:00
b0c29b8676
Removes GL types from regular renderer code after 3ed4eaf247
.
...
This was SVN commit r26920.
2022-06-06 07:30:45 +00:00
54aae3e6d4
Moves anisotropic filtering support check from GL texture to TextureManager to make it explicit.
...
This was SVN commit r26919.
2022-06-06 06:59:20 +00:00
095838da0a
Fixes A8 framebuffer format used for LOS interpolation and enables smooth LOS by default.
...
Tested By: Langbart, mastoras
Differential Revision: https://code.wildfiregames.com/D4654
This was SVN commit r26906.
2022-05-26 16:36:57 +00:00
53033ceaa2
Fixes rendering reflections and refractions in case of empty scissors.
...
This was SVN commit r26902.
2022-05-24 19:15:26 +00:00
a6f60afdc5
Adds instancing support to backend and enables it for minimap.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4650
This was SVN commit r26901.
2022-05-24 07:11:23 +00:00
db8d251a8b
Adds XML path of GL shader descriptions to file dependencies.
...
This was SVN commit r26864.
2022-05-09 10:13:19 +00:00
132058bc04
Fixes RenderDoc captures by calling glGetProgramivARB to get constants only for ARB shaders.
...
This was SVN commit r26863.
2022-05-09 08:22:21 +00:00
67e8e28006
Fixes dynamic GL buffer orphaning forgotten in cff79b421a
. Fixes #6533
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4638
This was SVN commit r26859.
2022-05-08 22:45:54 +00:00
62e589ab76
Adds renderer backend interface and dummy backend.
...
Comments By: phosit, Stan
Tested By: Langbart, phosit
Differential Revision: https://code.wildfiregames.com/D4636
This was SVN commit r26858.
2022-05-08 22:02:46 +00:00
b808adcc00
Disables writing depth for decals as they follow terrain and water (if floating) shape. Fixes #6494
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4637
This was SVN commit r26852.
2022-05-05 17:25:20 +00:00
3ed4eaf247
Removes ogl_WarnIfError from regular renderer code.
...
This was SVN commit r26850.
2022-05-02 21:52:21 +00:00
a493a9f07f
Removes ARB switch optimization as it triggers slow down. Fixes #6525
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4635
This was SVN commit r26849.
2022-05-02 21:25:13 +00:00
04bd96cee0
Moves uniform and texture binding to CDeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4631
This was SVN commit r26848.
2022-05-02 20:57:22 +00:00
ac60b12045
Replaces occurrences of "VBO" in comments by "backend buffer". Refs cff79b421a
...
This was SVN commit r26835.
2022-04-27 20:04:56 +00:00
d8b8128abb
Adds AsFloatArray to CMatrix3D.
...
This was SVN commit r26834.
2022-04-27 19:53:42 +00:00
22a4db837b
Adds backend buffer upload forgotten in aba7a170d9
. Fixes #6520
...
This was SVN commit r26833.
2022-04-27 19:00:06 +00:00
b26aa5936d
Avoids scoped binding of the already bound backend buffer.
...
This was SVN commit r26831.
2022-04-26 18:25:52 +00:00
98c18425a8
Adds more detailed debug name for backend buffers.
...
This was SVN commit r26830.
2022-04-26 18:16:45 +00:00
d2d22a4538
Makes the terrain and decals rendering code load effect once per usage.
...
This was SVN commit r26823.
2022-04-24 13:44:00 +00:00
d3a7491724
Removes CONFIG2_GLES from CPostprocManager and renderers.
...
This was SVN commit r26817.
2022-04-23 23:49:52 +00:00
df612ab8b4
Moves GLSL-specific uniform name workaround (added in 227f9e403f
) to CShaderProgramGLSL.
...
This was SVN commit r26816.
2022-04-23 21:39:15 +00:00
aba7a170d9
Moves vertex attribute binding to CDeviceCommandContext.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4610
This was SVN commit r26815.
2022-04-23 20:11:14 +00:00
7bd075d570
Moves glReadPixels to GL backend.
...
This was SVN commit r26802.
2022-04-17 14:55:00 +00:00
c6da4d9312
Adds a fallback texture to skies to avoid a crash if a sky texture was invalid.
...
This was SVN commit r26800.
2022-04-17 10:10:52 +00:00
e02b402a14
Uses vertex attribute name only for GLSL. Fixes #6500
...
This was SVN commit r26799.
2022-04-17 08:00:10 +00:00
eaac0b0dbe
Uses vertex streams to get attribute locations reducing duplication in XML.
...
Also adds missing streams.
This was SVN commit r26792.
2022-04-15 18:13:33 +00:00
37645670c1
Fixes crash in shader preprocessor introduced in d295dacb9b
and appeared after 25332f9b86
. Fixes #6033
...
This was SVN commit r26791.
2022-04-15 17:45:15 +00:00
2c8f4c4837
Moves AssertPointersBound to draw commands to not forget to call it for new shaders.
...
In the future it allows to call AssertPointersBound in a more lazy way.
This was SVN commit r26784.
2022-04-12 18:02:08 +00:00
d8d736f0eb
Allows tex clients decide how to handle invalid textures instead of assertions. Fixes #6436
...
This was SVN commit r26783.
2022-04-12 17:39:05 +00:00
8c1a469253
Uses GL device capabilities for all vertex attribute locations.
...
This was SVN commit r26782.
2022-04-12 16:49:04 +00:00
ad2068dae0
Uses sequential numbering of GL vertex attributes for modern hardware. Refs #3054
...
Differential Revision: https://code.wildfiregames.com/D4601
This was SVN commit r26781.
2022-04-12 16:13:47 +00:00
f6837978e8
Adds GL debug labels only if they are supported (forgotten in 3db24af763
). Fixes #6495
...
This was SVN commit r26780.
2022-04-12 06:44:06 +00:00
e6dd9f944e
Moves Vulkan report code to its device to prevent crashing when a GL device is created. Fixes #6270
...
Differential Revision: https://code.wildfiregames.com/D4577
This was SVN commit r26779.
2022-04-12 06:39:14 +00:00
811a540382
Simplifies GL::CShaderProgram to store less data.
...
This was SVN commit r26777.
2022-04-11 22:10:21 +00:00
3db24af763
Adds names to GL shaders and programs.
...
This was SVN commit r26776.
2022-04-11 20:30:23 +00:00
73c0e40045
Fixes warnings about unused function arguments in renderer.
...
This was SVN commit r26763.
2022-04-08 06:49:38 +00:00
e08590ee34
Fixes warning about unused captured variable in CDeviceCommandContext.
...
This was SVN commit r26749.
2022-04-02 20:40:40 +00:00
02b87cdb46
Fixes MSAA on macOS GL drivers for textures with incorrect sample count, fixes #6480
...
Refs #5969
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4581
This was SVN commit r26737.
2022-03-31 07:04:51 +00:00
4934784266
Adds USE_FP_SHADOW to shader context only for GL ARB.
...
This was SVN commit r26712.
2022-03-26 19:00:28 +00:00
a57581471d
Reduces the number of uniform changes in decals rendering and the number of render queries in models.
...
This was SVN commit r26688.
2022-03-20 16:08:19 +00:00
d214745f8f
Reduces the number of uniform changes in decals rendering.
...
This was SVN commit r26687.
2022-03-20 14:58:03 +00:00
2ed2e9de0c
Invalidates CDeviceCommandContext texture bind cache properly.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4553
This was SVN commit r26664.
2022-03-17 18:17:11 +00:00
37b30901b3
Removes C++ code for conditional defines removed in f29d059617
.
...
Differential Revision: https://code.wildfiregames.com/D4551
This was SVN commit r26661.
2022-03-15 22:13:22 +00:00
ea6af3f148
Updates a model color uniform in RenderModifier only if it was changed.
...
This was SVN commit r26653.
2022-03-14 22:56:38 +00:00
b4253d48cb
Moves CShaderProgram to backend and handling via CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4548
This was SVN commit r26652.
2022-03-14 22:16:14 +00:00