[Bug 753640] gl: DepthRange uses raw double instead of GLclampd

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Aug 15 09:20:02 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=753640

--- Comment #3 from Martin Kelly <martin at surround.io> ---
It doesn't cause an issue for me right now (because double is typedef'd to
GLdouble in the current gl.h), but it's also more than cosmetic. The opengl
types were defined so that we don't have issues with types sizes. double is not
guaranteed to be any particular size, so by using GLdouble we can keep
portability across compilers even if the particular definition of GLdouble in
gl.h changes in the future. We're already using opengl types for everything
else, so it's also better to be self-consistent.

That said, Sebastian Dröge noticed that GLclampd was removed in later opengl
versions, so I think we should probably be using GLdouble instead of GLclampd.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list