Skip to content

Commit

Permalink
Replace texture data magic number with 256 MiB worth of pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelarius committed Apr 21, 2024
1 parent 066bf66 commit 23fab5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pt/reference_path_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ ReferencePathTracer::ReferencePathTracer(
textureDescriptors.reserve(scene.baseColorTextures.size());

std::vector<Texture::BgraPixel> textureData;
textureData.reserve(67108864);
textureData.reserve((2 << 28) / sizeof(Texture::BgraPixel));

// Texture descriptors and texture data need to appended in the order of the model's
// baseColorTextures. The model's baseColorTextureIndices index into that array, and we want
Expand Down

0 comments on commit 23fab5d

Please sign in to comment.