# Shaders

**URL:** <https://discourse.glfw.org/t/shaders/390>\
**Category:** support\
**Created:** [August 22, 2006, 8:44pm UTC](https://discourse.glfw.org/t/shaders/390 "2006-08-22T20:44:52Z")\
**Posts on this page:** 5\
**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:** [August 22, 2006, 8:44pm UTC](https://discourse.glfw.org/t/shaders/390/1 "2006-08-22T20:44:52Z")

</div>

**nobody** wrote on [Tuesday, August 22, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/6ccae331/#74fe):

How should I use shaders in GLFW? I used GLEW with GLUT but this is not working anymore.

---

<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:** [August 23, 2006, 2:28am UTC](https://discourse.glfw.org/t/shaders/390/2 "2006-08-23T02:28:05Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Wednesday, August 23, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/6ccae331/#74fe/544c):

GLEW should work just fine in combination with GLFW. I’ve done so for quite a while on three platforms, with no special cases needed. Just remember to include glew.h BEFORE glfw.h and you should be set.

---

<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:** [August 24, 2006, 4:31am UTC](https://discourse.glfw.org/t/shaders/390/3 "2006-08-24T04:31:18Z")

</div>

**nobody** wrote on [Thursday, August 24, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/6ccae331/#74fe/544c/bd16):

Look at chapter 7 of the GLFW user’s guide. Everything you should need for extension suport is already there. You just need glext.h for the function prototypes.

---

<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:** [August 24, 2006, 12:04pm UTC](https://discourse.glfw.org/t/shaders/390/4 "2006-08-24T12:04:01Z")

</div>

**nobody** wrote on [Thursday, August 24, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/6ccae331/#91ee):

Now i fixed, I found that GLEW has a small bug [https://sourceforge.net/mailarchive/forum.php?thread\_id=8076290&forum\_id=43720](https://sourceforge.net/mailarchive/forum.php?thread_id=8076290&forum_id=43720) i must initialize GLEW AFTER glcontext has been created, that means i can run glewInit after glfwOpenWindow has been called, not before, that was my mistake. Anyway, thanx for help.

---

<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:** [August 24, 2006, 3:44pm UTC](https://discourse.glfw.org/t/shaders/390/5 "2006-08-24T15:44:01Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Thursday, August 24, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/6ccae331/#1a26):

That’s not a bug; it’s by by design. GLEW does not provide a facility for creating a context (that’s the job of GLFW), and the capabilities of a given context cannot be queried before its creation.

Great to hear it’s working!
