VirtualBox

Changeset 23434 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Sep 30, 2009 11:40:35 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53023
Message:

crOpenGL: fix crashes when saving depth textures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/pixel.c

    r21854 r23434  
    12671267        /* This was wrong in the old code! */
    12681268        bytes = ((width + 7) / 8) * height;
     1269    }
     1270    else if (GL_DEPTH_COMPONENT==format && type!=GL_FLOAT)
     1271    {
     1272        /*GL_DEPTH_COMPONENT with GL_UNSIGNED_BYTE seems is more that 1 byte per pixel*/
     1273        bytes = 4 * width * height * crPixelSize( format, type );
    12691274    }
    12701275    else
Note: See TracChangeset for help on using the changeset viewer.

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