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"
|
#include "VulkanAndroid.h"
|
||||||
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
|
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
|
#elif defined(_DIRECT2DISPLAY)
|
||||||
|
//
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
#include <xcb/xcb.h>
|
#include <xcb/xcb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -223,6 +225,8 @@ public:
|
||||||
bool right = false;
|
bool right = false;
|
||||||
bool middle = false;
|
bool middle = false;
|
||||||
} mouseButtons;
|
} mouseButtons;
|
||||||
|
#elif defined(_DIRECT2DISPLAY)
|
||||||
|
bool quit = false;
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
struct {
|
struct {
|
||||||
bool left = false;
|
bool left = false;
|
||||||
|
|
@ -294,6 +298,8 @@ public:
|
||||||
uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched,
|
uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched,
|
||||||
uint32_t mods_locked, uint32_t group);
|
uint32_t mods_locked, uint32_t group);
|
||||||
|
|
||||||
|
#elif defined(_DIRECT2DISPLAY)
|
||||||
|
//
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
xcb_window_t setupWindow();
|
xcb_window_t setupWindow();
|
||||||
void initxcbConnection();
|
void initxcbConnection();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue