*/}}
Browse Source

linux fix

YimingWu 2 months ago
parent
commit
76a265a5ae
1 changed files with 4 additions and 0 deletions
  1. 4 0
      la_tns_kernel.c

+ 4 - 0
la_tns_kernel.c

@@ -209,7 +209,11 @@ void tnsContextMakeFBOCurrent(tnsOffscreen* off){
 #endif
 }
 void tnsContextMakeWindowCurrent(laWindow* w){
+#ifdef _WIN32
     tnsContextMakeCurrent(w->glc,w->hdc,0);
+#else
+    tnsContextMakeCurrent(w->glc,w->win,0);
+#endif
 }
 #endif
 void tnsSwitchToCurrentWindowContext(laWindow* w){