mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
s/GLuint/GLushort/ in read_depth_stencil_image()
This commit is contained in:
parent
19b8322169
commit
b7e3e0d64e
1 changed files with 2 additions and 1 deletions
|
|
@ -148,11 +148,12 @@ read_depth_stencil_image(GLcontext *ctx, GLint x, GLint y,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
GLuint z16[MAX_WIDTH];
|
GLushort z16[MAX_WIDTH];
|
||||||
ASSERT(depthRb->DataType == GL_UNSIGNED_SHORT);
|
ASSERT(depthRb->DataType == GL_UNSIGNED_SHORT);
|
||||||
for (i = 0; i < height; i++) {
|
for (i = 0; i < height; i++) {
|
||||||
GLint j;
|
GLint j;
|
||||||
_swrast_get_row(ctx, depthRb, width, x, y + i, z16, sizeof(GLushort));
|
_swrast_get_row(ctx, depthRb, width, x, y + i, z16, sizeof(GLushort));
|
||||||
|
/* convert GLushorts to GLuints */
|
||||||
for (j = 0; j < width; j++) {
|
for (j = 0; j < width; j++) {
|
||||||
dst[j] = z16[j];
|
dst[j] = z16[j];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue