Palm-Studios / sh3redux

SILENT HILL 3 Engine Remake in OpenGL and C++
GNU General Public License v3.0
164 stars 15 forks source link

Fixed 'tex.cpp' #125

Closed Quaker762 closed 6 years ago

Quaker762 commented 6 years ago

Removed calls to glEnable() and glDisable() as they were causing a fatal GL error (as they are deprecated) which closed the program.

Quaker762 commented 6 years ago

@z33ky Wow, turns out enabling that debug messaging is REALLY effective... It caught onto the fact that glEnable with GL_TEXTURE_2D is deprecated.

z33ky commented 6 years ago

Hmmm what's with the commented glDisable(GL_{BLEND,LIGHTING})? Is this something we will later need to explicitly disable here?

Quaker762 commented 6 years ago

Hmmm what's with the commented glDisable(GL_{BLEND,LIGHTING})? Is this something we will later need to explicitly disable here?

Oops.. I pushed the wrong version. These enums are deprecated for glEnable so I don't think we'll be needing them any time soon, they just result in a GL_SEVERE warning and cause us to exit.