Skip to content

Commit 3c93c77

Browse files
authored
Merge pull request #102 from pspdev/fix-small-mistake-in-sprite-exampls
Fix mistake in sprite example
2 parents fa1344b + 819dad7 commit 3c93c77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • _includes/samples/sprite

_includes/samples/sprite/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void endFrame(){
100100
Texture * loadTexture(const char * filename) {
101101
Texture * texture = (Texture *) calloc(1, sizeof(Texture));
102102

103-
texture->data = (uint32_t *) stbi_load("grass.png", &(texture->width), &(texture->height), NULL, STBI_rgb_alpha);
103+
texture->data = (uint32_t *) stbi_load(filename, &(texture->width), &(texture->height), NULL, STBI_rgb_alpha);
104104

105105
// Make sure the texture cache is reloaded
106106
sceKernelDcacheWritebackInvalidateAll();
@@ -161,4 +161,4 @@ int main() {
161161
free(texture);
162162

163163
return 0;
164-
}
164+
}

0 commit comments

Comments
 (0)