瀏覽代碼

remove references to sg_begin_default_pass

Stian H. Johannesen 1 天之前
父節點
當前提交
23975003bc
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      sokol_gfx.h
  2. 1 1
      util/sokol_spine.h

+ 2 - 2
sokol_gfx.h

@@ -254,8 +254,8 @@
         Both sg_apply_viewport() and sg_apply_scissor_rect() must be called
         inside a rendering pass (e.g. not in a compute pass, or outside a pass)
 
-        Note that sg_begin_default_pass() and sg_begin_pass() will reset both the
-        viewport and scissor rectangles to cover the entire framebuffer.
+        Note that sg_begin_pass() will reset both the viewport and scissor
+        rectangles to cover the entire framebuffer.
 
     --- to update (overwrite) the content of buffer and image resources, call:
 

+ 1 - 1
util/sokol_spine.h

@@ -383,7 +383,7 @@
 
         const sspine_layer_transform tform = { ... };
 
-        sg_begin_default_pass(...);
+        sg_begin_pass(...);
         sspine_draw_layer(0, tform);
         sg_end_pass();
         sg_commit();