mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +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() :
|
||||
myPBuffer(NULL),
|
||||
myPBuffer(0),
|
||||
myContext(NULL),
|
||||
myWidth (0),
|
||||
myHeight (0)
|
||||
@ -135,7 +135,7 @@ bool RenderImageImplPBuffer::Create(unsigned int width, unsigned int height, uns
|
||||
GLXDrawable currentDrawable = glXGetCurrentDrawable();
|
||||
GLXContext currentContext = glXGetCurrentContext();
|
||||
if (currentContext)
|
||||
glXMakeCurrent(myDisplay, NULL, NULL);
|
||||
glXMakeCurrent(myDisplay, 0, NULL);
|
||||
|
||||
// Create the context
|
||||
XVisualInfo* visual = glXGetVisualFromFBConfig(myDisplay, configs[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user