소스 검색

this should probably fix the windows build

rdb 14 년 전
부모
커밋
8edfc69f2b
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      panda/src/dxgsg8/wdxGraphicsBuffer8.cxx

+ 3 - 3
panda/src/dxgsg8/wdxGraphicsBuffer8.cxx

@@ -293,7 +293,7 @@ rebuild_bitplanes() {
     color_tex->set_format(Texture::F_rgba);
     color_tex->set_format(Texture::F_rgba);
     color_ctx =
     color_ctx =
       DCAST(DXTextureContext8,
       DCAST(DXTextureContext8,
-            color_tex->prepare_now(_gsg->get_prepared_objects(), _gsg));
+            color_tex->prepare_now(0, _gsg->get_prepared_objects(), _gsg));
     if (color_ctx) {
     if (color_ctx) {
       if (!color_ctx->create_texture(*_dxgsg->_screen)) {
       if (!color_ctx->create_texture(*_dxgsg->_screen)) {
         dxgsg8_cat.error()
         dxgsg8_cat.error()
@@ -348,7 +348,7 @@ rebuild_bitplanes() {
     depth_tex->set_format(Texture::F_depth_stencil);
     depth_tex->set_format(Texture::F_depth_stencil);
     depth_ctx =
     depth_ctx =
       DCAST(DXTextureContext8,
       DCAST(DXTextureContext8,
-            depth_tex->prepare_now(_gsg->get_prepared_objects(), _gsg));
+            depth_tex->prepare_now(0, _gsg->get_prepared_objects(), _gsg));
     if (depth_ctx) {
     if (depth_ctx) {
       if (!depth_ctx->create_texture(*_dxgsg->_screen)) {
       if (!depth_ctx->create_texture(*_dxgsg->_screen)) {
         dxgsg8_cat.error()
         dxgsg8_cat.error()
@@ -434,7 +434,7 @@ select_cube_map(int cube_map_index) {
   if (color_tex) {
   if (color_tex) {
     color_ctx =
     color_ctx =
       DCAST(DXTextureContext8,
       DCAST(DXTextureContext8,
-            color_tex->prepare_now(_gsg->get_prepared_objects(), _gsg));
+            color_tex->prepare_now(0, _gsg->get_prepared_objects(), _gsg));
     if (!color_ctx->create_texture(*_dxgsg->_screen)) {
     if (!color_ctx->create_texture(*_dxgsg->_screen)) {
       dxgsg8_cat.error()
       dxgsg8_cat.error()
         << "Unable to re-create texture " << *color_ctx->get_texture() << endl;
         << "Unable to re-create texture " << *color_ctx->get_texture() << endl;