Skip to content

bug(libobs-opengl): macOS Tier 2 red at gl-stagesurf.c.h:144 after #2871 (GLint -> GLuint) #2879

Closed

Description

@zackees

Master's macOS Tier 2 lane is red as of #2871 (126608195, "build(libobs-opengl): make the conversions explicit (#2625)"). The merge-group run for #2872 (40832333776, base c010b3fae) failed:

/Users/runner/work/obs-studio/obs-studio/libobs-opengl/gl-stagesurf.c.h:144:43: error:
implicit conversion changes signedness: 'GLint' (aka 'int') to 'GLuint' (aka 'unsigned int')
[-Werror,-Wsign-conversion]

Job: Build 🧱 / Rust Tier 2 (macos-26) 123310954379. The failing job also fails CI Gate ✅ downstream, so every PR that selects the macOS lane is blocked.

Why it escaped #2871

The -Wsign-conversion findings for this target were replayed on Linux, and device_stage_texture()'s macOS branch is inside #ifdef __APPLE__ (gl-stagesurf.c.h:108-155), so the Linux compile never saw it. #2871 fixed 89 diagnostics in 12 TUs but could not see this one.

The two call sites

device_stage_texture() reads the previous read-framebuffer binding into a GLint last_fbo (glGetIntegerv needs GLint *) and then restores it with gl_bind_framebuffer(..., GLuint), and it passes uint32_t stage-surface dimensions to glReadPixels(..., GLsizei, GLsizei, ...). The build stops at the first failed translation unit, so the glReadPixels conversion is not proven clean either; both are the same class as the #2871 fixes.

Fix: state both conversions at the call ((GLuint)last_fbo, (GLsizei)dst->width/height), no behaviour change — the binding id is a non-negative name and the dimensions are the same value #2871 already converts elsewhere.

Verified: line numbers from origin/master 126608195; git log -1 -- libobs-opengl/gl-stagesurf.c.h is #2871. Not reproduced locally: the block is #ifdef __APPLE__, so the RED evidence is the CI log above; GREEN needs a macOS lane (dispatched Scheduled verify_only run).

Activity

  1. added
    bug
    P0
    size:S
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claiming: #2879

    1. GREEN (one commit, no local RED possible — the function is #ifdef __APPLE__): state the two conversions at their call sites in libobs-opengl/gl-stagesurf.c.h ((GLuint)last_fbo for the framebuffer restore, (GLsizei)dst->width/height for glReadPixels).
    2. Dispatch the Scheduled verify_only macOS lane on the branch and paste the green Build 🧱 / Rust Tier 2 (macos-26) + CI Gate ✅ jobs in the PR.

    RED evidence is the merge-group log on #2872 (job 123310954379); PR within the hour.

  3. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Coordinator note — the merge-queue impact, so nobody re-queues blind:

    No action requested from the claimant; this is the coordinator's record of what is held behind the fix.

  4. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Reopened: #2880 landed only its first commit (f37e33dd2) — the merge happened before the second one pushed, and the macOS lane then showed four more gl-cocoa.m.h conversions (260, 261: CGFloat -> uint32_t; 527, 602: uint32_t -> GLsizei). The remainder is PR #2892 (draft until a dispatched macOS Tier 2 lane is green). Master's macOS Tier 2 is therefore still red until #2892 lands.

  5. 1 remaining item

  6. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Closing: both halves are on master and the macOS lane is green on a fresh merge-queue run.

    Evidence, master tip f907d09db (merge-group run 40869896715, 2026-10-29T12:01Z): job Build 🧱 / Rust Tier 2 (macos-26) concluded success — the same job that reported gl-stagesurf.c.h:144 and then the four gl-cocoa.m.h sites. (Build 🧱 / macOS 🏗️ is skipped on this path, as noted in #2896; the Tier 2 job is the one that compiles these TUs, and it recompiled them because the previous run failed on exactly those objects.)

    The red merge-group run in the body, 40866120200, was on a PR head (103c74b), not on master; master has been green on this lane since f907d09db.

    No open PR remains for this: #2892 and #2897 are closed as superseded by #2880/#2900.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0bugsize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions