mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-23 13:10:41 +00:00
(xcb) Buildfix
This commit is contained in:
parent
575cd4e3be
commit
d6906ee7df
@ -513,6 +513,11 @@ ifeq ($(HAVE_X11), 1)
|
||||
DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_XCB),1)
|
||||
DEFINES += $(XCB_CFLAGS)
|
||||
LIBS += $(XCB_LIBS) -lX11-xcb
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_XKBCOMMON), 1)
|
||||
DEFINES += $(XKBCOMMON_CFLAGS)
|
||||
OBJ += input/drivers_keyboard/keyboard_event_xkb.o
|
||||
|
@ -13,6 +13,14 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "../../config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XCB
|
||||
#include <X11/Xlib-xcb.h>
|
||||
#endif
|
||||
|
||||
#include <retro_assert.h>
|
||||
|
||||
#include "vulkan_common.h"
|
||||
@ -1087,7 +1095,7 @@ bool vulkan_surface_create(gfx_ctx_vulkan_data_t *vk,
|
||||
surf_info.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
|
||||
surf_info.flags = 0;
|
||||
surf_info.connection = XGetXCBConnection(display);
|
||||
surf_info.window = (xcb_window_t)surface;
|
||||
surf_info.window = surface;
|
||||
|
||||
if (vk->fpCreateXcbSurfaceKHR(vk->context.instance,
|
||||
&surf_info, NULL, &vk->vk_surface)
|
||||
|
Loading…
x
Reference in New Issue
Block a user