|
|
@@ -214,7 +214,7 @@ static void errorCallback(int error, const char* description) { |
|
|
|
WARN("GLFW error %d: %s", error, description); |
|
|
|
} |
|
|
|
|
|
|
|
Window::Window() { |
|
|
|
Window::Window(void* handle) { |
|
|
|
internal = new Internal; |
|
|
|
int err; |
|
|
|
|
|
|
@@ -235,6 +235,9 @@ Window::Window() { |
|
|
|
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_TRUE); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (handle) |
|
|
|
glfwWindowHintPointer(GLFW_NATIVE_PARENT_HANDLE, handle); |
|
|
|
|
|
|
|
// Create window |
|
|
|
win = glfwCreateWindow(800, 600, "", NULL, NULL); |
|
|
|
if (!win) { |
|
|
|