summaryrefslogtreecommitdiff
path: root/texturesdl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'texturesdl.cpp')
-rwxr-xr-xtexturesdl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/texturesdl.cpp b/texturesdl.cpp
index ea7d9ac..716ea03 100755
--- a/texturesdl.cpp
+++ b/texturesdl.cpp
@@ -8,6 +8,7 @@ TextureSDL::TextureSDL(const char* filename) {
width = image->w;
height = image->h;
+ byte_per_pixel = image->format->BytesPerPixel;
data = (unsigned char*)image->pixels;
build();