1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00

Merge branch 'experimental' into tile-optimization

This commit is contained in:
fgenesis 2024-01-11 00:25:23 +01:00
commit b63d27b7b5
2 changed files with 3 additions and 4 deletions

View file

@ -112,7 +112,7 @@ void DarkLayer::preRender()
if (useFrameBuffer)
frameBuffer.startCapture();
glClearColor(1,1,1,1);
glClearColor(1,1,1,0);
glClear(GL_COLOR_BUFFER_BIT);
core->render(layer, layer, false);

View file

@ -112,10 +112,9 @@ bool FrameBuffer::init(int width, int height, bool fitToScreen)
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
// FIXME: check for GL_ARB_texture_float; otherwise stick with old format
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F_ARB,
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,
width, height,
0, GL_RGBA, GL_FLOAT, 0 );
0, GL_RGBA, GL_UNSIGNED_BYTE, 0 );
// Put together