Skip to content

Commit

Permalink
Fixed an issue with a misplaced curly brace
Browse files Browse the repository at this point in the history
Int and floats now work appropriately
  • Loading branch information
medcelerate committed Aug 23, 2024
1 parent 73282e0 commit fe32124
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions FFGLTouchEngine/src/TouchEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,27 +253,26 @@ FFResult FFGLTouchEngine::ProcessOpenGL(ProcessOpenGLStruct* pGL)
return FailAndLog("Failed to set boolean value");
}

if (type == FF_TYPE_TEXT) {
TEResult result = TEInstanceLinkSetStringValue(instance, param.first.c_str(), ParameterMapString[param.second].c_str());
if (result != TEResultSuccess)
{
isTouchFrameBusy = false;
return FailAndLog("Failed to set string value");
}
}
}

if (type == FF_TYPE_OPTION) {
TEResult result = TEInstanceLinkSetIntValue(instance, param.first.c_str(), &ParameterMapInt[param.second], 1);
if (result != TEResultSuccess)
{
isTouchFrameBusy = false;
return FailAndLog("Failed to set option value");
}
if (type == FF_TYPE_TEXT) {
TEResult result = TEInstanceLinkSetStringValue(instance, param.first.c_str(), ParameterMapString[param.second].c_str());
if (result != TEResultSuccess)
{
isTouchFrameBusy = false;
return FailAndLog("Failed to set string value");
}

}


if (type == FF_TYPE_OPTION) {
TEResult result = TEInstanceLinkSetIntValue(instance, param.first.c_str(), &ParameterMapInt[param.second], 1);
if (result != TEResultSuccess)
{
isTouchFrameBusy = false;
return FailAndLog("Failed to set option value");
}
}
}
TEResult result = TEInstanceStartFrameAtTime(instance, FrameCount, 60, false);
if (result != TEResultSuccess)
{
Expand Down Expand Up @@ -411,7 +410,7 @@ FFResult FFGLTouchEngine::ProcessOpenGL(ProcessOpenGLStruct* pGL)


}
}


// Unbind the input texture
glBindTexture(GL_TEXTURE_2D, 0);
Expand Down

0 comments on commit fe32124

Please sign in to comment.