0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-12 11:23:30 +00:00
Files
termux-packages/x11-packages/glslviewer/cast-getexposure-setuniform.patch

23 lines
1006 B
Diff

Fixes error: call to member function 'setUniform' is ambiguous
--- a/src/core/uniforms.cpp
+++ b/src/core/uniforms.cpp
@@ -88,7 +88,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
//
functions["u_iblLuminance"] = UniformFunction("float", [this](vera::Shader& _shader) {
if (activeCamera)
- _shader.setUniform("u_iblLuminance", 30000.0f * activeCamera->getExposure());
+ _shader.setUniform("u_iblLuminance", float(30000.0f * activeCamera->getExposure()));
},
[this]() {
if (activeCamera)
@@ -150,7 +150,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
functions["u_cameraExposure"] = UniformFunction("float", [this](vera::Shader& _shader) {
if (activeCamera)
- _shader.setUniform("u_cameraExposure", activeCamera->getExposure());
+ _shader.setUniform("u_cameraExposure", float(activeCamera->getExposure()));
},
[this]() {
if (activeCamera)