Closed Bug 556573 Opened 14 years ago Closed 13 years ago

OpenGL video support doesn't support non-multiple-of-4 widths/heights

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: joe, Assigned: bas.schouten)

References

()

Details

Attachments

(1 file)

Playing the Big Buck Bunny 480p video results in the linked image's results when we switch to fullscreen OpenGL video. We're just off by a couple of pixels here because the image isn't a multiple of four.
We now look for the optimal alignment we've got. And then use GL_UNPACK_ALIGNMENT, in theory this should also work on OGL ES unlike the ROW_LENGTH approach.
Attachment #436536 - Flags: review?(joe)
Comment on attachment 436536 [details] [diff] [review]
Use GL_UNPACK_ALIGNMENT instead of ROW_LENGTH

Add comments saying what textures' alignments are being set at each PixelStore call, and one saying "restore to default" at the bottom of the function?
Attachment #436536 - Flags: review?(joe) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: