瀏覽代碼

border_clamp

David Rose 16 年之前
父節點
當前提交
37a5fdf2f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -1018,7 +1018,7 @@ reset() {
     _edge_clamp = GL_CLAMP_TO_EDGE;
   }
 
-  _border_clamp = GL_CLAMP;
+  _border_clamp = _edge_clamp;
   if (CLP(support_clamp_to_border) &&
       (has_extension("GL_ARB_texture_border_clamp") ||
        is_at_least_version(1, 3))) {