Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Modifying vertex buffer on WebGL is disabled

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, unity

Research direction

Start with PluginSource/source/RenderAPI_OpenGLCoreES.cpp lines 280-294 and reproduce the plugin sample under WebGL. Investigate the SUPPORT_OPENGL_ES check and the reported GL_WRITE_ONLY build error. Done means the sample mesh is no longer flat in WebGL and the Unity build succeeds.

Written by the indexing model from the issue text.

Description

Hi, I'm trying to run the plugin sample under WebGL. It works fine in Editor, but the mesh is completely flat in web.

Looking at the code, it seems that modifying the mesh was intentionally disabled for WebGL.

https://github.com/Unity-Technologies/NativeRenderingPlugin/blob/cebe85af2de836c7ee6198f7ca4b488519f2db78/PluginSource/source/RenderAPI_OpenGLCoreES.cpp#L280-L294

When removing the check on SUPPORT_OPENGL_ES, I get the following error when building from Unity :

'GL_WRITE_ONLY' is undefined

image

Dominant language
C
Stars
946
Forks
186
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Unity-Technologies/NativeRenderingPlugin

All issues in Unity-Technologies/NativeRenderingPlugin

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.