16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 12:19:19 +02:00

compartment lighting vehicle subsystem, submodel diffuse impact on ambient lighting, minor gfx renderer bug fixes, minor ai logic tweaks

This commit is contained in:
tmj-fstate
2020-03-01 03:09:55 +01:00
parent e4502217e5
commit 642b8fb623
26 changed files with 485 additions and 130 deletions

View File

@@ -76,7 +76,7 @@ void render_task::run() {
if (!Global.gfx_usegles)
{
int size = width * height * 3;
format = GL_SRGB8;
format = ( Global.GfxFramebufferSRGB ? GL_SRGB8 : GL_RGBA8 );
components = GL_RGB;
m_target->image = new unsigned char[size];
memcpy(m_target->image, image, size);