Cleanup: Silence Compilation Warnings in GHOST

Pull Request: https://projects.blender.org/blender/blender/pulls/110260
This commit is contained in:
Jeroen Bakker 2023-07-19 12:59:49 +02:00
parent ae543c01a4
commit 567d992a69
1 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,7 @@
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#if defined(WITH_OPENGL_BACKEND) || defined(WITH_METAL_BACKEND)
#if defined(WITH_OPENGL_BACKEND) || defined(WITH_METAL_BACKEND)
# include "GHOST_ContextCGL.hh"
#endif
@ -763,11 +763,10 @@ GHOST_IWindow *GHOST_SystemCocoa::createWindow(const char *title,
*/
GHOST_IContext *GHOST_SystemCocoa::createOffscreenContext(GHOST_GPUSettings gpuSettings)
{
const bool debug_context = (gpuSettings.flags & GHOST_gpuDebugContext) != 0;
switch (gpuSettings.context_type) {
#ifdef WITH_VULKAN_BACKEND
case GHOST_kDrawingContextTypeVulkan: {
const bool debug_context = (gpuSettings.flags & GHOST_gpuDebugContext) != 0;
GHOST_Context *context = new GHOST_ContextVK(false, NULL, 1, 2, debug_context);
if (context->initializeDrawingContext()) {
return context;