Fixed build failed for _DIRECT2DISPLAY
for _DIRECT2DISPLAY it should not depended on xcb. fixed by adding macro switch
This commit is contained in:
parent
d15daabc58
commit
aaade7e831
1 changed files with 6 additions and 0 deletions
|
|
@ -21,6 +21,8 @@
|
|||
#include "VulkanAndroid.h"
|
||||
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
|
||||
#include <wayland-client.h>
|
||||
#elif defined(_DIRECT2DISPLAY)
|
||||
//
|
||||
#elif defined(__linux__)
|
||||
#include <xcb/xcb.h>
|
||||
#endif
|
||||
|
|
@ -223,6 +225,8 @@ public:
|
|||
bool right = false;
|
||||
bool middle = false;
|
||||
} mouseButtons;
|
||||
#elif defined(_DIRECT2DISPLAY)
|
||||
bool quit = false;
|
||||
#elif defined(__linux__)
|
||||
struct {
|
||||
bool left = false;
|
||||
|
|
@ -294,6 +298,8 @@ public:
|
|||
uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched,
|
||||
uint32_t mods_locked, uint32_t group);
|
||||
|
||||
#elif defined(_DIRECT2DISPLAY)
|
||||
//
|
||||
#elif defined(__linux__)
|
||||
xcb_window_t setupWindow();
|
||||
void initxcbConnection();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue