Skip to content

Commit 0a677fe

Browse files
fix float pointer test
1 parent 15469b0 commit 0a677fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_float_pointers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pyray as pr
2+
import pytest
23

34
pr.init_window(1280, 720, "any")
45

56
shader = pr.load_shader("", "shader.fs")
67
time = pr.ffi.new("float *", 0.0)
78
timeLoc = pr.get_shader_location(shader, "uTime")
89
pr.set_shader_value(shader, timeLoc, time, pr.SHADER_UNIFORM_FLOAT)
9-
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)
10+
with pytest.raises(TypeError):
11+
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)

0 commit comments

Comments
 (0)