fna-workbench

fna-workbench Commit Details


Date:2016-02-05 13:47:32 (9 years 7 months ago)
Author:Ethan Lee
Branch:master
Commit:63ac95ee6e2d65ebb5d08ab4b1cbde23c3e6e794
Parents: 9ef5003f69d517219d924d4ff353f17206038e16
Message:Only reset color mask if target was cleared

Changes:

File differences

src/Graphics/OpenGLDevice.cs
35513551
35523552
35533553
3554
35543555
35553556
35563557
35573558
35583559
3559
3560
35603561
35613562
35623563
......
36143615
36153616
36163617
3617
3618
36183619
36193620
36203621
glDisable(GLenum.GL_SCISSOR_TEST);
}
bool clearTarget = (options & ClearOptions.Target) == ClearOptions.Target;
bool clearDepth = (options & ClearOptions.DepthBuffer) == ClearOptions.DepthBuffer;
bool clearStencil = (options & ClearOptions.Stencil) == ClearOptions.Stencil;
// Get the clear mask, set the clear properties if needed
GLenum clearMask = GLenum.GL_ZERO;
if ((options & ClearOptions.Target) == ClearOptions.Target)
if (clearTarget)
{
clearMask |= GLenum.GL_COLOR_BUFFER_BIT;
if (!color.Equals(currentClearColor))
{
glEnable(GLenum.GL_SCISSOR_TEST);
}
if (colorWriteEnable != ColorWriteChannels.All)
if (clearTarget && colorWriteEnable != ColorWriteChannels.All)
{
// FIXME: ColorWriteChannels1/2/3? -flibit
glColorMask(

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.31586s using 13 queries.