1
0
Fork 0

Unix: Rename X11Display to X11Window and make it work again with Spectre/Window/Window

This commit is contained in:
Henrik Hautakoski 2023-08-22 10:06:19 +02:00
parent 96f6725428
commit 45d3bff620
9 changed files with 60 additions and 62 deletions

View file

@ -1,6 +1,6 @@
#include <stdio.h>
#include <Platform/PlatformDisplay.h>
#include <Platform/PlatformWindow.h>
#include <Spectre/System/Log.h>
#include "glad_glx.h"
@ -70,12 +70,12 @@ GLXContext::~GLXContext()
destroy();
}
bool GLXContext::create(const PlatformDisplay* display)
bool GLXContext::create(const PlatformWindow* window)
{
// Destroy any previous context first.
destroy();
m_win = (::Window) display->getHandle();
m_win = (::Window) window->getHandle();
if (!createGLContext()) {
destroy();