[Fluxus] slightly cleaner kludge

RPD ilostmyfiles at yahoo.com
Mon Nov 8 19:59:12 PST 2010


I looked closer, there are the right number of pops. My bad. So it turns
out that *if I can read*, the only 2 things that only happen when the
editor is visible, and aren't reversed within Render(), are changing the
blend mode and the matrix mode. So it turns out that changing the blendmode
alone solved my problem, maybe. Can someone verify that this isn't also
horrible? I'll try more modes but I have to admit, I don't know by heart
what they're all supposed to look like.

diff -u src-orig/FluxusMain.cpp src/FluxusMain.cpp
--- src-orig/FluxusMain.cpp	2010-11-08 22:44:51.000000000 -0500
+++ src/FluxusMain.cpp	2010-11-08 22:45:16.000000000 -0500
@@ -278,7 +278,11 @@
 void FluxusMain::Render()
 {
 	if (m_ShowFileDialog) m_FileDialog->Render();
-	else if (!m_HideScript) m_Editor[m_CurrentEditor]->Render();
+	else
+	{
+		if (!m_HideScript) m_Editor[m_CurrentEditor]->Render();
+		else glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+	}
 }
 
 void FluxusMain::LoadScript(const wstring &Filename)


--Rob



      



More information about the Fluxus mailing list