V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nashaofu
V2EX  ›  WebGL

请教一个 webgl 问题,例子里面的代码在 windows 与 Linux 上表现正常, mac 上提示 Vertex buffer is not big enough for the draw call

  •  1
     
  •   nashaofu · 2023-04-23 14:09:03 +08:00 · 654 次点击
    这是一个创建于 371 天前的主题,其中的信息可能已经有所发展或是发生改变。

    代码地址: https://codesandbox.io/s/admiring-hill-rrpb3o?file=/index.html

    mac 上报错信息:

    [WebGL-0x118003e4700] GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call
    

    期望能绘制一个红色三角形与一个蓝色三角形,蓝色三角形穿过红色三角形。

    第 1 条附言  ·  2023-04-23 23:55:37 +08:00
    期望效果如下:[image]( https://lh3.googleusercontent.com/ROPu7tY8ET2BixZv2fCuvdAIUJTLcE6mkzyx9sn9lEuqZo20pz0ecQbn-rJFZMVjQdDE8dDoFyUUNrLGxBLCFeN83rRvSqHbjdZ6kMgC)

    图片为在 Linux chrome 上截图,mac 上也是 chrome,版本皆为最新版
    3 条回复    2023-08-24 12:44:16 +08:00
    nashaofu
        1
    nashaofu  
    OP
       2023-04-23 23:28:37 +08:00
    linround
        2
    linround  
       249 天前
    403 了啊。麻烦再发下期望效果图
    nashaofu
        3
    nashaofu  
    OP
       248 天前 via iPhone
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3188 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:21 · PVG 20:21 · LAX 05:21 · JFK 08:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.