X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgraphics%2Fshader.cpp;h=de994ce2a170437e07b9a37d647f8da571c85ae4;hb=5d2da8a07411ad6417d6ed8d1be997189cf5ce89;hp=c38f9af2d15177ab65e514044eb736faad9f0f14;hpb=2c2c02796e9df82d0cda12b59aad638d40b4e8b4;p=blank.git diff --git a/src/graphics/shader.cpp b/src/graphics/shader.cpp index c38f9af..de994ce 100644 --- a/src/graphics/shader.cpp +++ b/src/graphics/shader.cpp @@ -215,8 +215,6 @@ DirectionalLighting::DirectionalLighting() void DirectionalLighting::Activate() noexcept { - GLContext::EnableDepthTest(); - GLContext::EnableBackfaceCulling(); program.Use(); glUniform3f(light_direction_handle, light_direction.x, light_direction.y, light_direction.z); @@ -319,9 +317,6 @@ BlockLighting::BlockLighting() void BlockLighting::Activate() noexcept { - GLContext::EnableDepthTest(); - GLContext::EnableBackfaceCulling(); - GLContext::DisableBlending(); program.Use(); } @@ -398,7 +393,6 @@ BlendedSprite::BlendedSprite() void BlendedSprite::Activate() noexcept { - GLContext::EnableAlphaBlending(); program.Use(); }