diff options
Diffstat (limited to 'texturesdl.cpp')
-rwxr-xr-x | texturesdl.cpp | 1 |
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(); |