V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
nashaofu
V2EX  ›  WebGL

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

  •  1
     
  •   nashaofu · Apr 23, 2023 · 1908 views
    This topic created in 1104 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
    nashaofu
        1
    nashaofu  
    OP
       Apr 23, 2023
    4ik96709qTWd3vO7
        2
    4ik96709qTWd3vO7  
       Aug 23, 2023
    403 了啊。麻烦再发下期望效果图
    nashaofu
        3
    nashaofu  
    OP
       Aug 24, 2023 via iPhone
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2502 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:21 · PVG 14:21 · LAX 23:21 · JFK 02:21
    ♥ Do have faith in what you're doing.