From 7ccbdd6b4ca216d37c14b9e062b49c01f465bcdf Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 18 Jun 2011 05:03:24 +1000 Subject: [PATCH] pBufferAGL stub typos --- Projects/CodeBlocks/SleepyHead.depend | 2 +- Projects/CodeBlocks/SleepyHead.layout | 4 ++-- src/graphs/gl_pbuffer.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Projects/CodeBlocks/SleepyHead.depend b/Projects/CodeBlocks/SleepyHead.depend index 68a605e3..29fe5b57 100644 --- a/Projects/CodeBlocks/SleepyHead.depend +++ b/Projects/CodeBlocks/SleepyHead.depend @@ -8362,7 +8362,7 @@ "sleeplib/profiles.h" "sleeplib/machine_loader.h" -1308329528 source:/home/mark/projects/git/sleepyhead/src/graphs/graph.cpp +1308334546 source:/home/mark/projects/git/sleepyhead/src/graphs/graph.cpp "freetype-gl/font-manager.h" "freetype-gl/texture-font.h" "graph.h" diff --git a/Projects/CodeBlocks/SleepyHead.layout b/Projects/CodeBlocks/SleepyHead.layout index 3a5be89a..ac1e38ff 100644 --- a/Projects/CodeBlocks/SleepyHead.layout +++ b/Projects/CodeBlocks/SleepyHead.layout @@ -19,10 +19,10 @@ - + - + diff --git a/src/graphs/gl_pbuffer.cpp b/src/graphs/gl_pbuffer.cpp index 141766e0..86511651 100644 --- a/src/graphs/gl_pbuffer.cpp +++ b/src/graphs/gl_pbuffer.cpp @@ -456,8 +456,10 @@ void pBufferGLX::UseBuffer(bool b) #elif defined(__DARWIN__) || defined(__WXMAC__) pBufferAGL::pBufferAGL(int width, int height) -:pBuffer(),m_width(width),m_height(height) +:pBuffer() { + m_width=width; + m_height=height; GLint attribs[] = { AGL_RGBA, AGL_DOUBLEBUFFER, @@ -510,8 +512,6 @@ pBufferAGL::pBufferAGL(int width, int height) // stub event loop } - -} pBufferAGL::~pBufferAGL() { /*aglSetCurrentContext( NULL );