Skip to content

Commit

Permalink
glTFExporter: Silence uninitialized variable warning
Browse files Browse the repository at this point in the history
This is a false positive, idx_srcdata_begin is only used if comp_allow
is true and in that case it's also initialized.
  • Loading branch information
turol committed Sep 15, 2017
1 parent f2e2f74 commit 0b140db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/glTFExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ void glTFExporter::ExportMeshes()

// Variables needed for compression. BEGIN.
// Indices, not pointers - because pointer to buffer is changing while writing to it.
size_t idx_srcdata_begin;// Index of buffer before writing mesh data. Also, index of begin of coordinates array in buffer.
size_t idx_srcdata_begin = 0; // Index of buffer before writing mesh data. Also, index of begin of coordinates array in buffer.
size_t idx_srcdata_normal = SIZE_MAX;// Index of begin of normals array in buffer. SIZE_MAX - mean that mesh has no normals.
std::vector<size_t> idx_srcdata_tc;// Array of indices. Every index point to begin of texture coordinates array in buffer.
size_t idx_srcdata_ind;// Index of begin of coordinates indices array in buffer.
Expand Down

0 comments on commit 0b140db

Please sign in to comment.