Qt: Fix build on Windows without epoxy
Jeffrey Pfau jeffrey@endrift.com
Sat, 16 Apr 2016 17:20:02 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
M
src/platform/qt/ShaderSelector.cpp
→
src/platform/qt/ShaderSelector.cpp
@@ -201,6 +201,7 @@ });
} QWidget* ShaderSelector::makePage(mGLES2Shader* shader, const QString& name, int pass) { +#if !defined(_WIN32) || defined(USE_EPOXY) if (!shader->nUniforms) { return nullptr; }@@ -253,6 +254,9 @@ }
layout->addRow(shader->uniforms[u].readableName, settings); } return page; +#else + return nullptr; +#endif } void ShaderSelector::buttonPressed(QAbstractButton* button) {