[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / windowing / X11 / GLContextGLX.h
blob6fd41b3ab9e48477a8defdb252d81febfd539e1c
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "GLContext.h"
13 #include <GL/glx.h>
15 namespace KODI
17 namespace WINDOWING
19 namespace X11
22 class CGLContextGLX : public CGLContext
24 public:
25 explicit CGLContextGLX(Display *dpy);
26 bool Refresh(bool force, int screen, Window glWindow, bool &newContext) override;
27 void Destroy() override;
28 void Detach() override;
29 void SetVSync(bool enable) override;
30 void SwapBuffers() override;
31 void QueryExtensions() override;
32 GLXWindow m_glxWindow = 0;
33 GLXContext m_glxContext = 0;
35 protected:
36 bool IsSuitableVisual(XVisualInfo *vInfo);
38 int (*m_glXGetVideoSyncSGI)(unsigned int*);
39 int (*m_glXWaitVideoSyncSGI)(int, int, unsigned int*);
40 int (*m_glXSwapIntervalMESA)(int);
41 PFNGLXSWAPINTERVALEXTPROC m_glXSwapIntervalEXT;
42 int m_nScreen;
43 int m_iVSyncErrors;
44 int m_vsyncMode;