mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Removed warnings in the Linux implementation of RenderImageImplPBuffer
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1811 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
ccc2a050ed
commit
58546a52df
@ -37,7 +37,7 @@ namespace priv
|
|||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
RenderImageImplPBuffer::RenderImageImplPBuffer() :
|
RenderImageImplPBuffer::RenderImageImplPBuffer() :
|
||||||
myPBuffer(NULL),
|
myPBuffer(0),
|
||||||
myContext(NULL),
|
myContext(NULL),
|
||||||
myWidth (0),
|
myWidth (0),
|
||||||
myHeight (0)
|
myHeight (0)
|
||||||
@ -135,7 +135,7 @@ bool RenderImageImplPBuffer::Create(unsigned int width, unsigned int height, uns
|
|||||||
GLXDrawable currentDrawable = glXGetCurrentDrawable();
|
GLXDrawable currentDrawable = glXGetCurrentDrawable();
|
||||||
GLXContext currentContext = glXGetCurrentContext();
|
GLXContext currentContext = glXGetCurrentContext();
|
||||||
if (currentContext)
|
if (currentContext)
|
||||||
glXMakeCurrent(myDisplay, NULL, NULL);
|
glXMakeCurrent(myDisplay, 0, NULL);
|
||||||
|
|
||||||
// Create the context
|
// Create the context
|
||||||
XVisualInfo* visual = glXGetVisualFromFBConfig(myDisplay, configs[0]);
|
XVisualInfo* visual = glXGetVisualFromFBConfig(myDisplay, configs[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user