# Anti-aliasing

**URL:** <https://discourse.glfw.org/t/anti-aliasing/488>\
**Category:** support\
**Created:** [April 23, 2009, 2:49am UTC](https://discourse.glfw.org/t/anti-aliasing/488 "2009-04-23T02:49:23Z")\
**Posts on this page:** 3\
**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:** [April 23, 2009, 2:49am UTC](https://discourse.glfw.org/t/anti-aliasing/488/1 "2009-04-23T02:49:23Z")

</div>

**[brad789](https://sourceforge.net/u/brad789/)** wrote on [Thursday, April 23, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/e2ec5958/#926a):

I’ve been having problems getting anti-aliasing working. I’m building my program on vista with the latest drivers for my card(NVidia GeForce 7300GT). In NV control panel anti-aliasing is set to application controlled.

Here are the relevant parts of my code:

```
if \(\!glfwInit\(\)\)
\{
	LOG\_GEN\(&quot;GLFW init failed\!&quot;\);
	return 0;
\}

LOG\_GEN\(&quot;\[main\] about to open glfw window with width: &quot; &lt;&lt; width &lt;&lt; &quot; height: &quot; &lt;&lt; height\);

glfwOpenWindowHint\(GLFW\_FSAA\_SAMPLES, 2\);

if\( \!glfwOpenWindow\( width, height, 8, 8, 8, 8, 32, 0, GLFW\_WINDOW \) \)
\{
    glfwTerminate\(\);
    return 0;
\}

LOG\_GEN\(&quot;\[main\] window creation succeeded &quot; &lt;&lt; width &lt;&lt; &quot; height: &quot; &lt;&lt; height\);

LOG\_GEN\(&quot;\[main\] fsaa samples: &quot; &lt;&lt; glfwGetWindowParam\(GLFW\_FSAA\_SAMPLES\)\);

```

in my log file I get {20:12:17} (3268) [main] fsaa samples: 0

I’ve tried a smaller depth buffer but didn’t have any luck.

---

<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:** [April 24, 2009, 8:49pm UTC](https://discourse.glfw.org/t/anti-aliasing/488/2 "2009-04-24T20:49:00Z")

</div>

**[brad789](https://sourceforge.net/u/brad789/)** wrote on [Friday, April 24, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/e2ec5958/#3b26):

I should also mention that I’m using GLEW for opengl extensions and I include it before glfw.

---

<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:** [April 24, 2009, 11:50pm UTC](https://discourse.glfw.org/t/anti-aliasing/488/3 "2009-04-24T23:50:20Z")

</div>

**[brad789](https://sourceforge.net/u/brad789/)** wrote on [Friday, April 24, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/e2ec5958/#926a/3506):

I got it working, when I reduced the depth buffer to 16 bits before I didn’t have it logging the result of glfwGetWindowParam(GLFW\_FSAA\_SAMPLES), I just visually checked it. Apparently it was working then, it just wasn’t as visible at 2x AA as I expected. Also just tested it at 24 bits for a depth buffer and that worked fine too. I guess my card just doesn’t support anti-aliasing at 32 bits.
