MiniB3D meets Max2D

BlitzMax Modules Forums/MiniB3D/MiniB3D meets Max2D

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry, I should have debugged it first and then posted! Here is the problem and the solution. The glActiveTexture() crashes so you have to replace them with glActiveTextureARB(). That is all. It now works on Mac as well. Getting a good 60+ FPS. Great work. Thanks klepto2!

	For Local Layer = 0 Until MaxTex
		glActiveTextureARB(GL_TEXTURE0+Layer)
				
		glDisable(GL_TEXTURE_CUBE_MAP)
		glDisable(GL_TEXTURE_GEN_S)
		glDisable(GL_TEXTURE_GEN_T)
		glDisable(GL_TEXTURE_GEN_R)

		glDisable(GL_TEXTURE_2D)
	Next
		
	glActiveTextureARB(GL_TEXTURE0)