Smoke:
* Fix for OpenGL domain scaling/rotating/translating reported by Wahooney
This commit is contained in:
@@ -209,6 +209,7 @@ void draw_volume(Scene *scene, ARegion *ar, View3D *v3d, Base *base, GPUTexture
|
||||
glGetBooleanv(GL_DEPTH_TEST, (GLboolean *)&gl_depth);
|
||||
|
||||
wmLoadMatrix(rv3d->viewmat);
|
||||
wmMultMatrix(ob->obmat);
|
||||
|
||||
glDepthMask(GL_FALSE);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
@@ -291,8 +292,6 @@ void draw_volume(Scene *scene, ARegion *ar, View3D *v3d, Base *base, GPUTexture
|
||||
|
||||
MEM_freeN(points);
|
||||
|
||||
wmMultMatrix(ob->obmat);
|
||||
|
||||
if(!gl_blend)
|
||||
glDisable(GL_BLEND);
|
||||
if(gl_depth)
|
||||
|
||||
Reference in New Issue
Block a user