VirtualBox

Opened 10 years ago

#14206 new defect

glPixelStorei(GL_UNPACK_ALIGNMENT,1) does not work

Reported by: sarladudu Owned by:
Component: 3D support Version: VirtualBox 4.3.28
Keywords: opengl glPixelStorei Cc:
Guest type: Windows Host type: Windows

Description

This following code:

glPixelStorei(GL_UNPACK_ALIGNMENT,1); glTexImage2D(GL_TEXTURE_2D,0,GL_ALPHA8,width,height,0,GL_ALPHA,GL_UNSIGNED_BYTE,pixels);

Will work properly with a packed texture only if width is a multiple of 4. If for example width is 41 and the texture is packed (so each row is 41 bytes wide with 0 empty bytes between rows) then diagonal lines will appear in the texture. However the same code works properly outside of virtualbox on every machine/driver combination tested.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette