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

Unified Diff: native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc

Issue 22842011: [NaCl SDK] Remove invalid assert from nacl_io. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | native_client_sdk/src/examples/api/input_event/shared_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc
diff --git a/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc b/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc
index 3ac841001e8654d5141944425b7f4ec8baeb84c8..3920839f7537eca7df24bfdc9aff96e22368d8fa 100644
--- a/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc
+++ b/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc
@@ -61,9 +61,11 @@ void DecompressTexture() {
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
};
const uint8_t* input = &kRLETextureData[0];
- const uint8_t * const input_end = &kRLETextureData[kRLETextureDataLength];
+ const uint8_t* const input_end = &kRLETextureData[kRLETextureDataLength];
uint8_t* output = &g_texture_data[0];
- const uint8_t * const output_end = &g_texture_data[kTextureDataLength];
+#ifndef NDEBUG
+ const uint8_t* const output_end = &g_texture_data[kTextureDataLength];
+#endif
uint8_t decoded[4];
int decoded_count = 0;
« no previous file with comments | « no previous file | native_client_sdk/src/examples/api/input_event/shared_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698