*/}}
YimingWu 2 mesi fa
parent
commit
76a265a5ae
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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){