anonymous wrote on Thursday, May 03, 2012 :
Hi,
I’m currently using GLFW as a base to build an engine on-top of.
I have run into an issue when building on OSX Lion (Latest version and
updates) when trying to run in fullscreen.
The error is :
2012-05-04 00:05:22.449 main invalid pixel format attribute
2012-05-04 00:05:22.451 main NSMapGet: map table argument is NULL
Anyone else got this ? Workarounds available ? or a fix in the works ?
Thanks in advance.
elmindreda wrote on Sunday, May 06, 2012 :
Which version of GLFW are you using?
Does fullscreen work despite the error? If not, what happens instead?
system
June 11, 2012, 5:34pm
3
anonymous wrote on Monday, June 11, 2012 :
I’m not the OP, but I’m getting the same error when using OpenGL 3.2 and
fullscreen doesn’t work.
elmindreda wrote on Tuesday, July 03, 2012 :
This was a bug in GLFW. It has been fixed in 2.7.6, which will be coming out
shortly.
system
July 13, 2012, 12:20pm
5
opticfroggy wrote on Friday, July 13, 2012 :
Hey,
I noticed that this was mentioned as fixed in 2.7.6 however I still seem to be
experiencing the same issue still.
With even the simplest of code :
#include <iostream>
#include <GL/glfw.h>
int main()
{
glfwInit();
glfwOpenWindowHint( GLFW_FSAA_SAMPLES, 4 );
glfwOpenWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE );
glfwOpenWindowHint( GLFW_OPENGL_VERSION_MAJOR, 3 );
glfwOpenWindowHint( GLFW_OPENGL_VERSION_MINOR, 2 );
glfwOpenWindowHint( GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE );
glfwOpenWindow( 1280, 800, 24, 24, 24, 24, 8, 0, /*GLFW_WINDOW*/GLFW_FULLSCREEN );
glfwSetWindowTitle( "Prototype-001" );
printf("OpenGL Version : %s", glGetString(GL_VERSION));
bool running = true;
while( running )
{
glClear( GL_COLOR_BUFFER_BIT );
glfwSwapBuffers();
// Check if ESC key was pressed or window was closed
running = !glfwGetKey( GLFW_KEY_ESC ) &&
glfwGetWindowParam( GLFW_OPENED );
}
return 0;
}
It creates the same error :
2012-07-13 13:19:54.873 main[17320:707] invalid pixel format attribute
2012-07-13 13:19:54.874 main[17320:707] NSMapGet: map table argument is NULL
system
July 13, 2012, 12:27pm
6
opticfroggy wrote on Friday, July 13, 2012 :
Ahha, Disregard the previous post, I seem unable to delete it.
I believed I was running 2.6.7 however when printing the version out with :
glfwGetVersion( &majVer, &minVer, &revVer );
printf("Using GLFW Version : %i.%i.%i", majVer, minVer, revVer);
It showed it wasn’t actually using the latest version.
I removed and reinstalled the files into /usr/local/… and it is now working
Thanks
system
July 13, 2012, 1:05pm
7
elmindreda wrote on Friday, July 13, 2012 :
You had me worried there for a moment. Glad it works now