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

Unified Diff: core/cross/stream_bank.cc

Issue 149236: Add o3djs.DestinationBuffer to converter.... (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
Index: core/cross/stream_bank.cc
===================================================================
--- core/cross/stream_bank.cc (revision 19848)
+++ core/cross/stream_bank.cc (working copy)
@@ -89,6 +89,9 @@
O3D_ERROR(service_locator()) << "No buffer on field";
return false;
}
+
+ // Check that this buffer is renderable. StreamBanks are used to submit
+ // data to GPU so we can only allow GPU accessable buffers through here.
apatrick 2009/07/07 00:58:25 accessable -> accessible
if (!buffer->IsA(VertexBuffer::GetApparentClass())) {
O3D_ERROR(service_locator()) << "Buffer is not a VertexBuffer";
return false;

Powered by Google App Engine
This is Rietveld 408576698