Removed glfwCopyContext to map better against EGL.

This commit is contained in:
Camilla Berglund
2012-11-22 20:16:48 +01:00
parent 06e7a96c61
commit 2a166c5086
8 changed files with 5 additions and 77 deletions
+5 -2
View File
@@ -158,10 +158,13 @@ int main(int argc, char** argv)
exit(EXIT_FAILURE);
}
// Set drawing color for the first context and copy it to the second
// Set drawing color for both contexts
glfwMakeContextCurrent(windows[0]);
glColor3f(0.6f, 0.f, 0.6f);
glfwCopyContext(windows[0], windows[1], GL_CURRENT_BIT);
glfwMakeContextCurrent(windows[1]);
glColor3f(0.6f, 0.6f, 0.f);
glfwMakeContextCurrent(windows[0]);
while (!closed)
{