# Fullscreen, OpenGL Core 3.2 on OSX

**URL:** <https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222>\
**Category:** support\
**Created:** [May 3, 2012, 11:06pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222 "2012-05-03T23:06:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [May 3, 2012, 11:06pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/1 "2012-05-03T23:06:05Z")

</div>

**anonymous** wrote on [Thursday, May 03, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#b703):

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [May 6, 2012, 11:40am UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/2 "2012-05-06T11:40:43Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, May 06, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#5542):

Which version of GLFW are you using?

Does fullscreen work despite the error? If not, what happens instead?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 11, 2012, 5:34pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/3 "2012-06-11T17:34:08Z")

</div>

**anonymous** wrote on [Monday, June 11, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#c387):

I’m not the OP, but I’m getting the same error when using OpenGL 3.2 and  
fullscreen doesn’t work.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 3, 2012, 5:01pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/4 "2012-07-03T17:01:51Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, July 03, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#43c4):

This was a bug in GLFW. It has been fixed in 2.7.6, which will be coming out  
shortly.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 13, 2012, 12:20pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/5 "2012-07-13T12:20:11Z")

</div>

**[opticfroggy](https://sourceforge.net/u/opticfroggy/)** wrote on [Friday, July 13, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#2539):

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
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 13, 2012, 12:27pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/6 "2012-07-13T12:27:20Z")

</div>

**[opticfroggy](https://sourceforge.net/u/opticfroggy/)** wrote on [Friday, July 13, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#e43f):

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 13, 2012, 1:05pm UTC](https://discourse.glfw.org/t/fullscreen-opengl-core-3-2-on-osx/222/7 "2012-07-13T13:05:11Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Friday, July 13, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/6b6ad9f5/#1a12):

You had me worried there for a moment. Glad it works now 🙂
