projects
/
platform
/
upstream
/
Vulkan-LoaderAndValidationLayers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07ac021
)
demos: fix ppm loader swapped width & height
author
Alexandre BACQUART
<tek512@gmail.com>
Fri, 17 Jun 2016 17:30:32 +0000
(11:30 -0600)
committer
Tony Barbour
<tony@LunarG.com>
Fri, 17 Jun 2016 17:31:50 +0000
(11:31 -0600)
Change-Id: I277fe91a928223a09f672d07c22a1547e710b847
demos/cube.c
patch
|
blob
|
history
diff --git
a/demos/cube.c
b/demos/cube.c
index
9b12bfc
..
d5269bc
100644
(file)
--- a/
demos/cube.c
+++ b/
demos/cube.c
@@
-1032,7
+1032,7
@@
bool loadTexture(const char *filename, uint8_t *rgba_data,
return false;
}
while(strncmp(cPtr++, "\n", 1));
- sscanf(cPtr, "%u %u",
height, width
);
+ sscanf(cPtr, "%u %u",
width, height
);
if (rgba_data == NULL) {
return true;
}
@@
-1075,7
+1075,7
@@
bool loadTexture(const char *filename, uint8_t *rgba_data,
}
} while (!strncmp(header, "#", 1));
- sscanf(header, "%u %u",
height, width
);
+ sscanf(header, "%u %u",
width, height
);
if (rgba_data == NULL) {
fclose(fPtr);
return true;