summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx5
-rw-r--r--include/vcl/openglwin.hxx6
2 files changed, 6 insertions, 5 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index 2b4af081b755..d5a9e3142173 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -186,9 +186,6 @@ public:
/// reset the GL context so this context is not implicit in subsequent GL calls.
void resetCurrent();
void swapBuffers();
-
- static sal_Int64 getBufferSwapCounter();
-
void sync();
void show();
@@ -252,8 +249,6 @@ private:
ProgramCollection maPrograms;
OpenGLProgram* mpCurrentProgram;
- static sal_Int64 mnBufferSwapCounter;
-
public:
vcl::Region maClipRegion;
int mnPainting;
diff --git a/include/vcl/openglwin.hxx b/include/vcl/openglwin.hxx
index 6b2e58dd5c40..9ae5d14b6ff7 100644
--- a/include/vcl/openglwin.hxx
+++ b/include/vcl/openglwin.hxx
@@ -48,6 +48,12 @@ public:
virtual void MouseMove( const MouseEvent& rMEvt ) override;
virtual void Command( const CommandEvent& rCEvt ) override;
+ /**
+ * Returns the number of times OpenGL buffers have been swapped.
+ * Not really any good reason why this is in this class, but...
+ */
+ static sal_Int64 getBufferSwapCounter();
+
private:
std::unique_ptr<OpenGLWindowImpl> mxImpl;
IRenderer* mpRenderer;