diff options
Diffstat (limited to 'tools/shadertoy')
| -rw-r--r-- | tools/shadertoy/template.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shadertoy/template.cc b/tools/shadertoy/template.cc index 56b4ab5..fdc4f70 100644 --- a/tools/shadertoy/template.cc +++ b/tools/shadertoy/template.cc @@ -99,7 +99,7 @@ void ShaderToyEffect::init(MainSequence* demo) { void ShaderToyEffect::render(WGPURenderPassEncoder pass, float time, float beat, float intensity, float aspect_ratio) { const UniformsSequenceParams uniforms = { - .resolution = {static_cast<float>(width_), static_cast<float>(height_)}, + .resolution = {(float)(width_), (float)(height_)}, .aspect_ratio = aspect_ratio, .time = time, .beat = beat, |
