windows cross-compliation
This commit is contained in:
parent
f27d19b6c8
commit
887dfbe5c4
4 changed files with 14 additions and 5 deletions
4
main.c
4
main.c
|
@ -93,6 +93,8 @@ void *render_chunks(void *args) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#define WinMain main
|
||||
|
||||
int main(void) {
|
||||
if (!glfwInit())
|
||||
exit(EXIT_FAILURE);
|
||||
|
@ -259,7 +261,7 @@ int main(void) {
|
|||
glBufferSubData(GL_ARRAY_BUFFER, 0, (long)cube_count * sizeof(Vertex),
|
||||
cube);
|
||||
if (thread_id != 0)
|
||||
pthread_join(thread_id,NULL);
|
||||
pthread_join(thread_id, NULL);
|
||||
thread_id = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue