mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: mark OGL object as final
Give the compiler more devirtualization hint
This commit is contained in:
parent
decac5fd12
commit
b8a023d158
|
@ -114,7 +114,7 @@ public:
|
|||
bool IsMaskEnable() { return m_depth_mask != GL_FALSE; }
|
||||
};
|
||||
|
||||
class GSDeviceOGL : public GSDevice
|
||||
class GSDeviceOGL final : public GSDevice
|
||||
{
|
||||
public:
|
||||
__aligned(struct, 32) VSConstantBuffer
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "GSTextureCacheOGL.h"
|
||||
#include "GSVertexHW.h"
|
||||
|
||||
class GSRendererOGL : public GSRendererHW
|
||||
class GSRendererOGL final : public GSRendererHW
|
||||
{
|
||||
enum PRIM_OVERLAP {
|
||||
PRIM_OVERLAP_UNKNOW,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "GSTextureCache.h"
|
||||
#include "GSDeviceOGL.h"
|
||||
|
||||
class GSTextureCacheOGL : public GSTextureCache
|
||||
class GSTextureCacheOGL final : public GSTextureCache
|
||||
{
|
||||
protected:
|
||||
int Get8bitFormat() { return GL_R8;}
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace PboPool {
|
|||
void Destroy();
|
||||
}
|
||||
|
||||
class GSTextureOGL : public GSTexture
|
||||
class GSTextureOGL final : public GSTexture
|
||||
{
|
||||
private:
|
||||
GLuint m_texture_id; // the texture id
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <X11/Xlib.h>
|
||||
#include <GL/glx.h>
|
||||
|
||||
class GSWndOGL : public GSWndGL
|
||||
class GSWndOGL final : public GSWndGL
|
||||
{
|
||||
Window m_NativeWindow;
|
||||
Display* m_NativeDisplay;
|
||||
|
|
Loading…
Reference in New Issue