Fix for ATI discrete graphics on 2015 macbook pro / mac pro.

Fixed incorrect size for camera transform uniforms passed via
glBindBufferRange.   This is a legitimate bug on our side.
I guess Intel and nVidia drivers just happen to ignore this field.
This was likely causing many of the shader TransformCamera members
to be identity or un-initialized, specifically, the projection
matrix values.

This was resulting in a black screen on ATI gpus.
This commit is contained in:
Anthony J. Thibault 2015-08-15 09:42:05 -07:00
parent 9706a44ca1
commit cd58f012a3

View file

@ -133,7 +133,7 @@ void GLBackend::updateTransform() {
if (offset >= 0) {
glBindBufferRange(GL_UNIFORM_BUFFER, TRANSFORM_CAMERA_SLOT,
_transform._transformCameraBuffer,
offset, sizeof(Backend::TransformObject));
offset, sizeof(Backend::TransformCamera));
}
(void)CHECK_GL_ERROR();