fix float pointer test
This commit is contained in:
parent
15469b03ae
commit
0a677fe31d
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import pyray as pr
|
import pyray as pr
|
||||||
|
import pytest
|
||||||
|
|
||||||
pr.init_window(1280, 720, "any")
|
pr.init_window(1280, 720, "any")
|
||||||
|
|
||||||
|
@ -6,4 +7,5 @@ shader = pr.load_shader("", "shader.fs")
|
||||||
time = pr.ffi.new("float *", 0.0)
|
time = pr.ffi.new("float *", 0.0)
|
||||||
timeLoc = pr.get_shader_location(shader, "uTime")
|
timeLoc = pr.get_shader_location(shader, "uTime")
|
||||||
pr.set_shader_value(shader, timeLoc, time, pr.SHADER_UNIFORM_FLOAT)
|
pr.set_shader_value(shader, timeLoc, time, pr.SHADER_UNIFORM_FLOAT)
|
||||||
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)
|
with pytest.raises(TypeError):
|
||||||
|
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)
|
Reference in a new issue