*/}}
소스 검색

Windows and linux FBO make current fix

YimingWu 5 달 전
부모
커밋
151b21257d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      la_tns_kernel.c

+ 4 - 0
la_tns_kernel.c

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