binding an glxcontext without a drawable isn't possible in glx. Removing for now

dev
keldu.magnus 2020-12-19 17:17:18 +01:00
parent 48867fe1e7
commit 19240182f6
3 changed files with 0 additions and 9 deletions

View File

@ -79,13 +79,6 @@ XcbGlContext::~XcbGlContext() {
device->flush();
}
void XcbGlContext::bind() {
assert(device);
if (device) {
::glXMakeContextCurrent(device->display, None, None, context);
}
}
Own<GlWindow> XcbGlContext::createWindow(const VideoMode &video_mode,
std::string_view title_view) {
assert(device);

View File

@ -30,7 +30,6 @@ public:
GLXContext, GLXFBConfig);
~XcbGlContext();
void bind() override;
Own<GlWindow> createWindow(const VideoMode &, std::string_view) override;
void flush() override;

View File

@ -51,7 +51,6 @@ class GlContext {
public:
virtual ~GlContext() = default;
virtual void bind() = 0;
virtual Own<GlWindow> createWindow(const VideoMode &, std::string_view) = 0;
virtual void flush() = 0;