Fixed wrong bounds used to pass bound values to shader