mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
Use feature detection macros everywhere
This commit is contained in:
committed by
Corentin Wallez
parent
4db6327f78
commit
0b186b1fda
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user