From d992240bfafd749a6535cc3abf0815567f8a3af7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 18 Nov 2017 06:08:35 +0100 Subject: Fix unneeded legacy OpenGL call in Cycles viewport drawing. --- intern/cycles/device/device_cuda.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'intern/cycles/device/device_cuda.cpp') diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp index c9e1fcad8f2..ce0df36a76f 100644 --- a/intern/cycles/device/device_cuda.cpp +++ b/intern/cycles/device/device_cuda.cpp @@ -1782,8 +1782,6 @@ public: } glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); - glEnable(GL_TEXTURE_2D); - if(transparent) { glEnable(GL_BLEND); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); @@ -1865,7 +1863,6 @@ public: } glBindTexture(GL_TEXTURE_2D, 0); - glDisable(GL_TEXTURE_2D); return; } -- cgit v1.2.3