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

Author Topic: Can you make sfml assert on setting param of unloaded shader?  (Read 2297 times)

0 Members and 1 Guest are viewing this topic.

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Can you make sfml assert on setting param of unloaded shader?
« on: November 21, 2012, 03:15:40 am »
i spent way, way too many days trying to learn opengl shaders with sfml and what not. only to find out that i was doing:

m_shader.setparam()
//many lines of blah
m_shader.load
m_shader.setsomeotherparam()

needless to say, as you'd expect, there's no way that could work ;)

it'd be nice if sfml would just assert on that scenario, since that's 110% lib user fault that should yell at the programmer asap.

even if only for this scenario, and not for if you load a shader, set a param then load another shader into it..since that's not possible to check of course.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Can you make sfml assert on setting param of unloaded shader?
« Reply #1 on: November 21, 2012, 08:05:07 am »
Yep, I should probably do something :)
Laurent Gomila - SFML developer