Browse Source

Fixed typo bug.

David Piuva 2 years ago
parent
commit
948a0628a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/DFPSR/api/imageAPI.cpp

+ 1 - 1
Source/DFPSR/api/imageAPI.cpp

@@ -85,7 +85,7 @@ static bool imageIsPadded(const ImageRgbaU8 &image) {
 }
 
 Buffer dsr::image_encode(const ImageRgbaU8 &image, ImageFileFormat format, int quality) {
-	if (buffer_exists) {
+	if (image_exists(image)) {
 		ImageRgbaU8 orderedImage;
 		if (image_getPackOrderIndex(image) != PackOrderIndex::RGBA) {
 			// Repack into RGBA.