diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-25 19:19:23 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-25 19:19:23 +0000 |
| commit | d31dc00f82d2121dc0378db77264d9263540a192 (patch) | |
| tree | d384eb65560a6bef42e339d4393e03b6c9baaa16 /Graphics/GLSLTools | |
| parent | Updated handling of fatal errors (diff) | |
| download | DiligentCore-d31dc00f82d2121dc0378db77264d9263540a192.tar.gz DiligentCore-d31dc00f82d2121dc0378db77264d9263540a192.zip | |
Reworked main headers to be compatible with c
Diffstat (limited to 'Graphics/GLSLTools')
| -rw-r--r-- | Graphics/GLSLTools/src/GLSLSourceBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp b/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp index 4eb79157..2ed36c56 100644 --- a/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp +++ b/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp @@ -73,14 +73,14 @@ String BuildGLSLSourceString(const ShaderCreateInfo& CreationAttribs, bool IsES30 = false; bool IsES31OrAbove = false; bool IsES32OrAbove = false; - if (deviceCaps.DevType == DeviceType::Vulkan) + if (deviceCaps.DevType == RENDER_DEVICE_TYPE_VULKAN) { IsES30 = false; IsES31OrAbove = true; IsES32OrAbove = false; GLSLSource.append("#version 310 es\n"); } - else if (deviceCaps.DevType == DeviceType::OpenGLES) + else if (deviceCaps.DevType == RENDER_DEVICE_TYPE_GLES) { IsES30 = deviceCaps.MajorVersion == 3 && deviceCaps.MinorVersion == 0; IsES31OrAbove = deviceCaps.MajorVersion > 3 || (deviceCaps.MajorVersion == 3 && deviceCaps.MinorVersion >= 1); |
