From 35bf490f0d0b5b1ca5000aaa0ea1ccfd05f17926 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 27 Sep 2020 17:51:16 +0100 Subject: [PATCH] Fix GLFW3 build error Great API... --- src/Backends/Platform/GLFW3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/Platform/GLFW3.cpp b/src/Backends/Platform/GLFW3.cpp index f96a0904..1d94e13b 100644 --- a/src/Backends/Platform/GLFW3.cpp +++ b/src/Backends/Platform/GLFW3.cpp @@ -231,7 +231,7 @@ void Backend_SetWindowIcon(const unsigned char *rgb_pixels, size_t width, size_t void Backend_SetCursor(const unsigned char *rgba_pixels, size_t width, size_t height) { - GLFWimage glfw_image = {(int)width, (int)height, rgba_pixels}; + GLFWimage glfw_image = {(int)width, (int)height, (unsigned char*)rgba_pixels}; cursor = glfwCreateCursor(&glfw_image, 0, 0); if (cursor != NULL)