diff --git a/src/Bitmap.cpp b/src/Bitmap.cpp index 79b4eeeb..479843e0 100644 --- a/src/Bitmap.cpp +++ b/src/Bitmap.cpp @@ -23,11 +23,11 @@ unsigned char* DecodeBitmapFromFile(const char *path, unsigned int *width, unsig if (file_buffer != NULL) { - unsigned char *pixel_buffer = stbi_load_from_memory(file_buffer, file_size, (int*)width, (int*)height, NULL, 3); + unsigned char *image_buffer = stbi_load_from_memory(file_buffer, file_size, (int*)width, (int*)height, NULL, 3); free(file_buffer); - return pixel_buffer; + return image_buffer; } return NULL;