[hlsdl] GL.deleteProgram is missing.

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale

Research direction

Open libs/sdl/sdl/GL.hx and compare the existing deleteShader, deleteTexture, and other GL object destructor declarations. Add the missing deleteProgram declaration and verify that it matches the surrounding API; the issue also asks for clarification about whether nulling GL objects invokes their destructors.

Written by the indexing model from the issue text.

Description

In GL.hx, there is no declaration for deleteProgram unlike the other GL object destructors such as deleteShader, deleteTexture and so on.

By the way, can I ask whether setting GL objects to null are enough to call their corresponding GL destructors? I noticed that the API looks a bit like WebGL so I wonder if garbage collected GL objects are automatically deleted.

Thank you.

Dominant language
C
Stars
911
Forks
207
Avg merge
1d 21h
Merged PRs (30d)
13

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 HaxeFoundation/hashlink

All issues in HaxeFoundation/hashlink

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.