mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Issue #4: Now really clearing with 0 alpha
This commit is contained in:
@@ -236,8 +236,8 @@ namespace opengl
|
||||
// bind buffer and clear screen
|
||||
glPushAttrib(GL_VIEWPORT_BIT | GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
strategy->bindFBO(fbo);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glClearColor(.0f, .0f, .0f, .0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glViewport(0, 0, width, height);
|
||||
|
||||
// indicate we are using this fbo
|
||||
|
||||
Reference in New Issue
Block a user