Skip to content

Commit 32a37ef

Browse files
authored
Update gl4dfScattering.c
un bug sur certaines machines qui tronquent les valeurs négatives
1 parent 265e65f commit 32a37ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_src/GL4D/gl4dfScattering.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void setDimensions(GLuint w, GLuint h) {
190190
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
191191
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
192192
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
193-
glTexImage2D(GL_TEXTURE_2D, 0, GL_RG, _width, _height, 0, GL_RG, GL_FLOAT, noise);
193+
glTexImage2D(GL_TEXTURE_2D, 0, GL_RG32F, _width, _height, 0, GL_RG, GL_FLOAT, noise);
194194
free(noise);
195195
}
196196

0 commit comments

Comments
 (0)