36 this->DepthTestEnabled = ostate->
GetEnumState(GL_DEPTH_TEST);
40 this->CullFaceEnabled = ostate->
GetEnumState(GL_CULL_FACE);
43 GLboolean depthMaskWrite = GL_TRUE;
45 this->DepthMaskEnabled = (depthMaskWrite == GL_TRUE);
69 glBindBuffer(GL_ARRAY_BUFFER, 0);
70 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
77 this->State->vtkglCullFace(this->CullFaceMode);
78 this->State->SetEnumState(GL_CULL_FACE, this->CullFaceEnabled);
79 this->State->vtkglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
84 if (!this->BlendEnabled)
86 this->State->vtkglDisable(GL_BLEND);
89 this->State->SetEnumState(GL_DEPTH_TEST, this->DepthTestEnabled);
91 if (this->DepthMaskEnabled)
93 this->State->vtkglDepthMask(GL_TRUE);