Skip to content

Commit

Permalink
Fixing color parameter for imageCreate().
Browse files Browse the repository at this point in the history
  • Loading branch information
dariomanesku committed Mar 14, 2017
1 parent c4196a3 commit a8c246a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmft/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,7 @@ namespace cmft

// Get color in rgba32f format.
float color[4];
const uint32_t abgr = cmft::endianSwap(_rgba);
toRgba32f(color, TextureFormat::RGBA8, &abgr);
toRgba32f(color, TextureFormat::RGBA8, &_rgba);

// Fill data with specified color.
float* dstPtr = (float*)dstData;
Expand Down

0 comments on commit a8c246a

Please sign in to comment.