Use feature detection macros everywhere

This commit is contained in:
Corentin Wallez
2017-07-12 12:56:05 -04:00
committed by Corentin Wallez
parent 4db6327f78
commit 0b186b1fda
6 changed files with 51 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ namespace opengl {
spirv_cross::CompilerGLSL::Options options;
// TODO(cwallez@chromium.org): discover the backing context version and use that.
#if defined(__APPLE__)
#if defined(NXT_PLATFORM_APPLE)
options.version = 410;
#else
options.version = 450;