Skip to content

Commit 819dad7

Browse files
authored
Fix mistake in sprite example
1 parent fa1344b commit 819dad7

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)