Unix: Rename X11Display to X11Window and make it work again with Spectre/Window/Window
This commit is contained in:
parent
96f6725428
commit
45d3bff620
9 changed files with 60 additions and 62 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue