nashaofu
V2EX  ›  WebGL

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

  •  1
     
  •   nashaofu · Apr 23, 2023 · 2570 views
    This topic created in 1301 days ago, the information mentioned may be changed or developed.

    代码地址: 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
    

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

    Supplement 1  ·  Apr 23, 2023
    期望效果如下:[image]( https://lh3.googleusercontent.com/ROPu7tY8ET2BixZv2fCuvdAIUJTLcE6mkzyx9sn9lEuqZo20pz0ecQbn-rJFZMVjQdDE8dDoFyUUNrLGxBLCFeN83rRvSqHbjdZ6kMgC)

    图片为在 Linux chrome 上截图,mac 上也是 chrome,版本皆为最新版
    3 replies  •  2023-08-24 12:44:16 +08:00
    4ik96709qTWd3vO7
    4ik96709qTWd3vO7
    Aug 23, 2023
    2
    403 了啊。麻烦再发下期望效果图
    nashaofu
    nashaofu
    OP
    Aug 24, 2023 via iPhone
    3
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 02:30 · PVG 10:30 · LAX 18:30 · JFK 21:30
    ♥ Do have faith in what you're doing.