Skip to content

Add QPainter fallback in PreviewWidget when OpenGL is unavailable - #49

Open
hysciico wants to merge 1 commit into
Hillobar:Rope-Bronzefrom
hysciico:fix-preview-qpainter-fallback
Open

hysciico wants to merge 1 commit into
Hillobar:Rope-Bronzefrom
hysciico:fix-preview-qpainter-fallback

Conversation

@hysciico

Copy link
Copy Markdown

Summary

When PyOpenGL is missing or when OpenGL shader initialization fails, PreviewWidget.paintGL() returned early without rendering the frame, leaving the preview window permanently on its black background during playback and scrubbing.

Changes

  • Added a QPainter CPU fallback in PreviewWidget.paintGL() with aspect-ratio scaling to render the frame if OpenGL is unavailable or if shader initialization failed.
  • Prevents silent frame dropping and ensures video playback/scrubbing remains functional on headless, minimal, or non-OpenGL environments.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant