From d31dc00f82d2121dc0378db77264d9263540a192 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 25 Jan 2020 11:19:23 -0800 Subject: Reworked main headers to be compatible with c --- Graphics/GLSLTools/src/GLSLSourceBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GLSLTools') 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); -- cgit v1.2.3