Skip to content

Commit

Permalink
Fix noise texture internalformat
Browse files Browse the repository at this point in the history
  • Loading branch information
gustafla committed Aug 4, 2023
1 parent 74837dc commit 93c0591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ demo_t *demo_init(int width, int height) {
glActiveTexture(GL_TEXTURE0);
glGenTextures(1, &demo->noise_texture);
glBindTexture(GL_TEXTURE_2D, demo->noise_texture);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, NOISE_SIZE, NOISE_SIZE, 0,
GL_RED, GL_UNSIGNED_BYTE, NULL);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, NOISE_SIZE, NOISE_SIZE, 0, GL_RGBA,
GL_UNSIGNED_BYTE, NULL);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);

Expand Down

0 comments on commit 93c0591

Please sign in to comment.