SFML community forums

General => Feature requests => Topic started by: Predator106 on November 21, 2012, 03:15:40 am

Title: Can you make sfml assert on setting param of unloaded shader?
Post by: Predator106 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.
Title: Re: Can you make sfml assert on setting param of unloaded shader?
Post by: Laurent on November 21, 2012, 08:05:07 am
Yep, I should probably do something :)