From ba782e90c8d1e79896a156c788caf0c58304117b Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 7 Feb 2019 12:20:23 +0100 Subject: [PATCH] gsdx ogl: enable sparse feature on GSdevice interface Note: remain * To really use sparse texture * To debug it ^^ --- plugins/GSdx/Renderers/OpenGL/GSDeviceOGL.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/GSdx/Renderers/OpenGL/GSDeviceOGL.h b/plugins/GSdx/Renderers/OpenGL/GSDeviceOGL.h index b39fc7699b..a7817f5ff6 100644 --- a/plugins/GSdx/Renderers/OpenGL/GSDeviceOGL.h +++ b/plugins/GSdx/Renderers/OpenGL/GSDeviceOGL.h @@ -563,6 +563,8 @@ public: void OMSetRenderTargets(GSTexture* rt, GSTexture* ds, const GSVector4i* scissor = NULL) final; void OMSetColorMaskState(OMColorMaskSelector sel = OMColorMaskSelector()); + virtual bool HasColorSparse() { return GLLoader::found_compatible_GL_ARB_sparse_texture2; } + virtual bool HasDepthSparse() { return GLLoader::found_compatible_sparse_depth; } void CreateTextureFX(); GLuint CompileVS(VSSelector sel);