mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Turn of auto color clearing in Framebuffer::startGrab().
--HG-- branch : minor
This commit is contained in:
@@ -199,10 +199,9 @@ namespace opengl
|
|||||||
current->stopGrab();
|
current->stopGrab();
|
||||||
|
|
||||||
// bind buffer and clear screen
|
// bind buffer and clear screen
|
||||||
glPushAttrib(GL_VIEWPORT_BIT | GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_TRANSFORM_BIT);
|
glPushAttrib(GL_VIEWPORT_BIT | GL_DEPTH_BUFFER_BIT | GL_TRANSFORM_BIT);
|
||||||
strategy->bindFBO(fbo);
|
strategy->bindFBO(fbo);
|
||||||
glClearColor(.0f, .0f, .0f, .0f);
|
glClear(GL_DEPTH_BUFFER_BIT);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
|
|
||||||
// Reset the projection matrix
|
// Reset the projection matrix
|
||||||
|
|||||||
Reference in New Issue
Block a user