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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user