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:
commit
b63d27b7b5
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue