Skip to content

Commit

Permalink
Work-around for <vulkan/vulkan_core.h> inclusion
Browse files Browse the repository at this point in the history
This header seems to be still in flux and recently changed:
google/skia@62661fc

define SKIA_IMPLEMENTATION 1 is a work-around and should be revisited in the future.
  • Loading branch information
HinTak committed Mar 29, 2024
1 parent e85fd65 commit 5acdcbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/skia/GrContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
#include <include/gpu/gl/GrGLInterface.h>
#include <include/gpu/ganesh/gl/GrGLBackendSurface.h>
#include <include/gpu/ganesh/gl/GrGLDirectContext.h>
#if !defined(SKIA_IMPLEMENTATION)
#define SKIA_IMPLEMENTATION 1
#include <include/gpu/ganesh/vk/GrVkBackendSemaphore.h>
#undef SKIA_IMPLEMENTATION
#endif
#include <include/gpu/ganesh/vk/GrVkBackendSurface.h>
#include <include/gpu/ganesh/vk/GrVkDirectContext.h>
#include <include/gpu/vk/GrVkBackendContext.h>
Expand Down

0 comments on commit 5acdcbe

Please sign in to comment.