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

Unified Diff: core/cross/pack.cc

Issue 151103: Changed way Packs cannot be created if there is no Renderer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 6 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
« core/cross/client.cc ('K') | « core/cross/object_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/pack.cc
===================================================================
--- core/cross/pack.cc (revision 19521)
+++ core/cross/pack.cc (working copy)
@@ -163,6 +163,11 @@
Texture* Pack::CreateTextureFromBitmap(Bitmap *bitmap, const String& uri) {
DCHECK(bitmap);
+ if (!renderer_) {
+ O3D_ERROR(service_locator()) << "No Render Device Available";
+ return NULL;
+ }
+
if (bitmap->width() > Texture::MAX_DIMENSION ||
bitmap->height() > Texture::MAX_DIMENSION) {
O3D_ERROR(service_locator())
« core/cross/client.cc ('K') | « core/cross/object_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698