# GLFW 3.2 not working with GLEW anymore

**URL:** <https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677>\
**Category:** support\
**Created:** [June 12, 2016, 11:16am UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677 "2016-06-12T11:16:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![juacado](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@juacado](https://discourse.glfw.org/u/juacado)\
**Post date:** [June 12, 2016, 11:16am UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/1 "2016-06-12T11:16:10Z")

</div>

Hi all.

I’ve been using GLFW 3.1.1 + GLEW 1.12 without any problem on Ubuntu 14.04. Yesterday I decided to update to the newest versions of each library (GLFW 3.2 + GLEW 1.13).  
Now I’m having problems with just a simple program that creates a window + load OpenGL extensions + displays the window with a background color.

With GLFW 3.1.1 + GLEW 1.12 or 1.13 the window background is cleared with the color I specified.  
With GLFW 3.1 or 3.2 only (no OpenGL extensions loaded yet) it works as well.  
With GLFW 3.2 + GLEW 1.12 or 1.13 the window background is NOT cleared (whatever was in the background appears inside the window, i.e. the IDE)

Source code: [https://bpaste.net/show/1ef6644aeee7](https://bpaste.net/show/1ef6644aeee7)  
Makefile: [https://bpaste.net/show/4f2d692243d0](https://bpaste.net/show/4f2d692243d0)

(I can’t put screenshots as I’m new user and I’m only allowed to put two).

Does anybody know what is happening?

Thanks!

---

<div class="post-metadata">

**Author:** ![juacado](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@juacado](https://discourse.glfw.org/u/juacado)\
**Post date:** [June 12, 2016, 11:18am UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/2 "2016-06-12T11:18:50Z")

</div>

Screenshot for GLFW 3.1.1 + GLEW 1.12: [https://imagebin.ca/v/2kOlr2kGEVJe](https://imagebin.ca/v/2kOlr2kGEVJe)  
Screenshot for GLFW 3.2 + GLEW 1.12: [https://imagebin.ca/v/2kOm9mCEMqKs](https://imagebin.ca/v/2kOm9mCEMqKs)

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [June 13, 2016, 7:57am UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/3 "2016-06-13T07:57:51Z")

</div>

I’m not sure what’s going on here - @elmindreda may know more.

I would have thought that on Linux for core OpenGL you don’t need GLEW. I know some users (myself included) have had issues with GLEW and many have switched to GLAD. As the examples and tests in GLFW use glad then it’s also more likely that any compatibility issues with these are found early.

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [June 16, 2016, 11:26am UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/4 "2016-06-16T11:26:56Z")

</div>

Unable to reproduce with GLFW 3.2 and GLEW 1.13 on Ubuntu 16.04. Everything seems to work as expected.

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [June 16, 2016, 11:27am UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/5 "2016-06-16T11:27:39Z")

</div>

@juacado What GPUs does the machine have and what drivers are installed for them?

---

<div class="post-metadata">

**Author:** ![juacado](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@juacado](https://discourse.glfw.org/u/juacado)\
**Post date:** [July 9, 2016, 9:53pm UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/6 "2016-07-09T21:53:17Z")

</div>

@elmindreda Sorry for the late reply.

I’ve switched from GLEW to libepoxy. Some users in the irc channel were talking about libepoxy and GLAD, I switched to libepoxy because it was easier for me to install. The issue now happens sometimes, so I’ve switched back to GLFW 3.1.1 😓

However in a MacBook Pro 15" I have no problem with GLFW 3.2.

The info you were asking for:

$ sudo lshw -c video  
\*-display  
description: VGA compatible controller  
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller  
vendor: Intel Corporation  
physical id: 2  
bus info: pci@0000:00:02.0  
version: 09  
width: 64 bits  
clock: 33MHz  
capabilities: msi pm vga\_controller bus\_master cap\_list rom  
configuration: driver=i915 latency=0  
resources: irq:50 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)

$ modinfo i915  
filename: /lib/modules/3.16.0-76-generic/kernel/drivers/gpu/drm/i915/i915.ko  
license: GPL and additional rights  
description: Intel Graphics  
author: Tungsten Graphics, Inc.  
srcversion: 6E3F50D84F8198521F7E5D8

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [August 20, 2016, 1:36pm UTC](https://discourse.glfw.org/t/glfw-3-2-not-working-with-glew-anymore/677/7 "2016-08-20T13:36:07Z")

</div>

Apologies for the late response, I didn’t spot there was a reply.

It might help to run the glfwinfo program for both GLFW 3.1.1 and GLFW 3.2 and copy the output for both here.

Also, any chance you could run cat /rpoc/cpuinfo and let us know the mode name to tie down which actual CPU you have (and so which GPU you have since you’re running on the Intel integrated GPU)?

I can’t see the source code in your pastebin, it’s gone, so perhaps you can paste that into the forum post?

Have you been able to debug and see if the program is running properly in the GLFW 3.2 case, i.e. does the call to swapbuffers occur?
