mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-09 16:50:42 +00:00
Enables ARB shaders only once since we should not mix different backends.
This was SVN commit r26629.
This commit is contained in:
1 parent
0456b09c3c
commit
992c18aabb
2 files changed
+8
-4
No files matched your search
@@ -198,8 +198,6 @@ public:
|
||||
|
||||
void Bind() override
|
||||
{
|
||||
glEnable(GL_VERTEX_PROGRAM_ARB);
|
||||
glEnable(GL_FRAGMENT_PROGRAM_ARB);
|
||||
glBindProgramARB(GL_VERTEX_PROGRAM_ARB, m_VertexProgram);
|
||||
glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, m_FragmentProgram);
|
||||
|
||||
@@ -208,8 +206,6 @@ public:
|
||||
|
||||
void Unbind() override
|
||||
{
|
||||
glDisable(GL_VERTEX_PROGRAM_ARB);
|
||||
glDisable(GL_FRAGMENT_PROGRAM_ARB);
|
||||
glBindProgramARB(GL_VERTEX_PROGRAM_ARB, 0);
|
||||
glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, 0);
|
||||
|
||||
|
||||
Reference in new issue
Block a user