summaryrefslogtreecommitdiffstats
path: root/o3d/core
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 01:28:03 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 01:28:03 +0000
commitd5b87e98d53d6091305198838750514a21300b2c (patch)
tree1bc639ad9f4ac94b325a534557f405db5e19030e /o3d/core
parent7c37aa933f6df5c90eab08a2b3a5818d58dddded (diff)
downloadchromium_src-d5b87e98d53d6091305198838750514a21300b2c.zip
chromium_src-d5b87e98d53d6091305198838750514a21300b2c.tar.gz
chromium_src-d5b87e98d53d6091305198838750514a21300b2c.tar.bz2
Fix bug with render targets not getting restored correctly.
Review URL: http://codereview.chromium.org/155185 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core')
-rw-r--r--o3d/core/cross/renderer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/o3d/core/cross/renderer.cc b/o3d/core/cross/renderer.cc
index 43362f0..e754f19 100644
--- a/o3d/core/cross/renderer.cc
+++ b/o3d/core/cross/renderer.cc
@@ -627,6 +627,7 @@ void Renderer::SetRenderSurfaces(RenderSurface* surface,
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 @@ void Renderer::SetRenderSurfaces(RenderSurface* surface,
} else {
SetBackBufferPlatformSpecific();
current_render_surface_ = NULL;
+ current_depth_surface_ = NULL;
render_width_ = width();
render_height_ = height();
}