>From 81a22b1dd6e2298729a8af226b9ba7328e503337 Mon Sep 17 00:00:00 2001
From: Frederic Plourde <[email protected]>
Date: Wed, 21 Sep 2011 13:44:26 -0400
Subject: [PATCH gles] Fix GLWindow and GLScreen WrapableHandler 'N'
template argument.

Plugins should always derive from WrapableHandler with the correct
'N' template argument, that is : the number of wrapped functions.
---
 plugins/opengl/include/opengl/opengl.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/opengl/include/opengl/opengl.h
b/plugins/opengl/include/opengl/opengl.h
index 90988b2..ed83a27 100644
--- a/plugins/opengl/include/opengl/opengl.h
+++ b/plugins/opengl/include/opengl/opengl.h
@@ -448,7 +448,7 @@ class GLScreenInterface :
 
 
 class GLScreen :
-    public WrapableHandler<GLScreenInterface, 5>,
+    public WrapableHandler<GLScreenInterface, 6>,
     public PluginClassHandler<GLScreen, CompScreen, COMPIZ_OPENGL_ABI>,
     public CompOption::Class
 {
@@ -632,7 +632,7 @@ class GLWindowInterface :
 };
 
 class GLWindow :
-    public WrapableHandler<GLWindowInterface, 5>,
+    public WrapableHandler<GLWindowInterface, 4>,
     public PluginClassHandler<GLWindow, CompWindow, COMPIZ_OPENGL_ABI>
 {
     public:
-- 
1.7.4.1
_______________________________________________
dev mailing list
[email protected]
http://lists.compiz.org/mailman/listinfo/dev

Reply via email to