Repository navigation
fix(libobs-opengl): state the two macOS stage-surface conversions (#2879) - #2880
Conversation
The macOS branch of device_stage_texture() is inside #ifdef __APPLE__, so the Linux replay behind #2871 never compiled it and missed two -Wsign-conversion diagnostics: the framebuffer restore passes a GLint binding to gl_bind_framebuffer(GLuint), and glReadPixels takes GLsizei widths from uint32_t stage-surface dimensions. State both at the call; the values are unchanged (a read-framebuffer binding is a non-negative name).
|
macOS evidence dispatched: Scheduled 40834432835 on this branch — the full |
|
macOS GREEN on second attempt: Build 🧱 / Rust Tier 2 (macos-26) ✅ at The first attempt (run 40834432835, The Scheduled run's overall failure is the pre-existing nightly red (CEF support, the two macOS app builds and |
Fixes #2879. Master's macOS Tier 2 lane is red as of #2871; this states the two conversions the Linux replay could not see.
RED
The merge-group run for #2872 (base
c010b3fae) failed inBuild 🧱 / Rust Tier 2 (macos-26)(job 123310954379):This is #2871's own unit (
126608195is the last commit on that file): its RED/GREEN replay ran on Linux, anddevice_stage_texture()'s macOS body is#ifdef __APPLE__(gl-stagesurf.c.h:108-155), so the replay never compiled it. The macOS build stops at the first failed TU, so the neighbouringglReadPixelsconversion is not proven clean either — both are the same class as the 89 diagnostics #2871 fixed.GREEN
libobs-opengl/gl-stagesurf.c.h, no behaviour change:gl_bind_framebuffer(GL_READ_FRAMEBUFFER, (GLuint)last_fbo)—last_fbocomes fromglGetIntegerv, which needsGLint *; a framebuffer binding is a non-negative name, so the restore keeps the value.glReadPixels(0, 0, (GLsizei)dst->width, (GLsizei)dst->height, …)— the dimensions are the sameuint32_tvalues the surrounding code already converts.Evidence
No local RED/GREEN is possible: the block compiles only on Apple platforms, and PR CI does not select the macOS lane for a
libobs-openglheader change. macOS evidence is the dispatchedScheduledrun on this branch (fullBuild 🧱matrix, includingRust Tier 2 (macos-26)); the link is in the comments.clang-format --dry-run --Werroron the file is clean. No local-gate stamp exists for the same reason — the gate's Linux lanes never compile this branch.This unblocks #2872's merge group, which failed only on this diagnostic (its own diff is
plugins/obs-outputsonly).