Hello Guest

[FIXED] NV_Path_Rendering, some functions are missing a pathBase parameter

  • 3 Replies
  • 7821 Views
Hi

Just started to play around with NV_Path_Rendering, and I've notice that: glStencilFillPathInstancedNV, glStencilStrokePathInstancedNV, glCoverFillPathInstancedNV, glCoverStrokePathInstancedNV, glGetPathMetricsNV and glGetPathSpacingNV are all missing a pathBase parameter, and instead pass in 0.

Regards
elFarto

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
It's pointless, isn't it? You can simply set the buffer to the appropriate .position(). The numPaths parameter is hidden as well, it's calculated according to the .remaining() buffer elements. Am I missing something?

No, pathBase is the id of the path that the paths parameter is relative to. It's similar to basevertex in glDrawElementsBaseVertex, or how glListBase works with display lists. It's not the index into the paths array/buffer.

Regards
elFarto

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Indeed, fixed on next nightly. Thanks for reporting this.