Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problem with SFML & OpenGL integration  (Read 1132 times)

0 Members and 1 Guest are viewing this topic.

deamonDev

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Problem with SFML & OpenGL integration
« on: June 06, 2014, 01:02:46 am »
Hello everyone!

I have small problem to integrate OpenGL (4.3) with SFML (2.1). When I try compile that code;

http://pastebin.com/RqSLmLZq

I receive problem like this one:



I know the problem is with only when I try to invoke
glClearBufferfv
function, but I don't know why. I don't want to give up SFML because I very like it :)
« Last Edit: June 06, 2014, 01:05:01 am by deamonDev »

lolz123

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Problem with SFML & OpenGL integration
« Reply #1 on: June 06, 2014, 02:59:51 am »
You have to call glewInit before using OpenGL functions.
Have you heard about the new Cray super computer?  It’s so fast, it executes an infinite loop in 6 seconds.