[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / guilib / TextureGL.h
blob58d219b6227c5c8da09d53f0517f7230c6de60a3
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 "Texture.h"
13 #include "system_gl.h"
15 /************************************************************************/
16 /* CGLTexture */
17 /************************************************************************/
18 class CGLTexture : public CTexture
20 public:
21 CGLTexture(unsigned int width = 0, unsigned int height = 0, XB_FMT format = XB_FMT_A8R8G8B8);
22 ~CGLTexture() override;
24 void CreateTextureObject() override;
25 void DestroyTextureObject() override;
26 void LoadToGPU() override;
27 void BindToUnit(unsigned int unit) override;
29 protected:
30 GLuint m_texture = 0;
31 bool m_isOglVersion3orNewer = false;