Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2832)

Unified Diff: core/cross/renderer.cc

Issue 155185: Fix bug with render targets not getting restored correctly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/renderer.cc
===================================================================
--- core/cross/renderer.cc (revision 20010)
+++ core/cross/renderer.cc (working copy)
@@ -627,6 +627,7 @@
if (surface != NULL || depth_surface != NULL) {
SetRenderSurfacesPlatformSpecific(surface, depth_surface);
current_render_surface_ = surface;
+ current_depth_surface_ = depth_surface;
if (surface) {
render_width_ = surface->width();
render_height_ = surface->height();
@@ -637,6 +638,7 @@
} else {
SetBackBufferPlatformSpecific();
current_render_surface_ = NULL;
+ current_depth_surface_ = NULL;
render_width_ = width();
render_height_ = height();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698