Point made.
This commit is contained in:
parent
23ff318f59
commit
e85455719d
@ -35,7 +35,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -57,8 +56,6 @@ static int thread_main(void* data)
|
|||||||
const Thread* thread = (const Thread*) data;
|
const Thread* thread = (const Thread*) data;
|
||||||
|
|
||||||
glfwMakeContextCurrent(thread->window);
|
glfwMakeContextCurrent(thread->window);
|
||||||
assert(glfwGetCurrentContext() == thread->window);
|
|
||||||
|
|
||||||
glfwSwapInterval(1);
|
glfwSwapInterval(1);
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
@ -118,8 +115,6 @@ int main(void)
|
|||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
{
|
{
|
||||||
assert(glfwGetCurrentContext() == NULL);
|
|
||||||
|
|
||||||
glfwWaitEvents();
|
glfwWaitEvents();
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user