diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-18 08:08:35 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-24 02:12:48 +0300 |
commit | d992240bfafd749a6535cc3abf0815567f8a3af7 (patch) | |
tree | a35bb8feec789e520dead65cbdf864c3df746ec4 /intern/cycles/device/device_cuda.cpp | |
parent | a786baa193d28e2193a9f2953b61e659c7df92e0 (diff) |
Fix unneeded legacy OpenGL call in Cycles viewport drawing.
Diffstat (limited to 'intern/cycles/device/device_cuda.cpp')
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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; } |