Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Hardware/Video/OpenGL/Buffers/FrameBufferObject/glDepthArrayBufferObject.cpp

Diff revisions: vs.
  @@ -12,12 +12,12 @@
12 12 _textureType = GL_TEXTURE_2D_ARRAY_EXT;
13 13 }
14 14
15 - void glDepthArrayBufferObject::DrawToLayer(GLubyte face, GLubyte layer){
15 + void glDepthArrayBufferObject::DrawToLayer(GLubyte face, GLubyte layer) const {
16 16 GLCheck(glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, _depthId, 0, layer));
17 - GLCheck(glClear( GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT ));
17 + GLCheck(glClear( _clearBufferMask ));
18 18 }
19 19
20 - void glDepthArrayBufferObject::Bind(GLubyte unit, GLubyte texture) {
20 + void glDepthArrayBufferObject::Bind(GLubyte unit, GLubyte texture) const {
21 21 FrameBufferObject::Bind(unit);
22 22 GL_API::setActiveTextureUnit(unit);
23 23 GLCheck(glBindTexture(_textureType, _depthId));