const T& operator* (void) const { return get(); }
const T* operator-> (void) const;
- operator bool (void) const { return m_ptr; }
+ operator bool (void) const { return !!m_ptr; }
private:
T* m_ptr;
GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to create renderbuffer.");
}
- gl.drawBuffers(bufs.size(), &(bufs[0]));
+ gl.drawBuffers((glw::GLsizei)bufs.size(), &(bufs[0]));
for (int renderbufferNdx = 0; renderbufferNdx < (int)drawBuffers.size(); renderbufferNdx++)
{
setCommonBlendState(gl, postCommonBlendState);
- gl.drawBuffers(bufs.size(), &(bufs[0]));
+ gl.drawBuffers((glw::GLsizei)bufs.size(), &(bufs[0]));
if (requiresBlendBarriers)
gl.blendBarrierKHR();