Re: [Mesa-dev] [PATCH 6/6] mesa: check for identity matrix in _mesa_LoadMatrixf()

2015-07-20 Thread Anuj Phogat
On Fri, Jul 17, 2015 at 5:48 PM, Brian Paul wrote: > Google Earth often calls glLoadMatrixf() with an identity matrix instead > of glLoadIdentity() to set the modelview and texture matrices. In many > cases, the matrix is already the identity so the calls are redundant. > > By being a bit smarter

[Mesa-dev] [PATCH 6/6] mesa: check for identity matrix in _mesa_LoadMatrixf()

2015-07-17 Thread Brian Paul
Google Earth often calls glLoadMatrixf() with an identity matrix instead of glLoadIdentity() to set the modelview and texture matrices. In many cases, the matrix is already the identity so the calls are redundant. By being a bit smarter in _mesa_LoadMatrixf() we can avoid quite a few matrix-relat