diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 284: CanvasGeneric: fix inverted checks for destroying renderbuffers.

Message ID 20131017150037.16826.28595.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Jesse Barker Oct. 17, 2013, 3 p.m. UTC
------------------------------------------------------------
revno: 284
committer: Jesse Barker <jesse.barker@linaro.org>
branch nick: trunk
timestamp: Thu 2013-10-17 07:59:00 -0700
message:
  CanvasGeneric: fix inverted checks for destroying renderbuffers.
modified:
  src/canvas-generic.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/canvas-generic.cpp'
--- src/canvas-generic.cpp	2013-06-11 22:40:02 +0000
+++ src/canvas-generic.cpp	2013-10-17 14:59:00 +0000
@@ -413,11 +413,11 @@ 
         glDeleteFramebuffers(1, &fbo_);
         fbo_ = 0;
     }
-    if (!color_renderbuffer_) {
+    if (color_renderbuffer_) {
         glDeleteRenderbuffers(1, &color_renderbuffer_);
         color_renderbuffer_ = 0;
     }
-    if (!depth_renderbuffer_) {
+    if (depth_renderbuffer_) {
         glDeleteRenderbuffers(1, &depth_renderbuffer_);
         depth_renderbuffer_ = 0;
     }