server_getteximage.c revision e761514762c8705557b347266d54ade68888537c
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "chromium.h"
#include "cr_error.h"
#include "cr_mem.h"
#include "cr_pixeldata.h"
#include "server_dispatch.h"
#include "server.h"
{
#ifdef CR_ARB_pixel_buffer_object
{
/*pixels are actualy a pointer to location of 8byte network pointer in hgcm buffer
pbo>4gb (yet?)
*/
return;
}
#endif
cr_server.head_spu->dispatch_table.GetTexLevelParameteriv(target, level, GL_TEXTURE_HEIGHT, &height);
/* Note, the other pixel PACK parameters (default values) should
* be OK at this point.
*/
}
else {
/* need to return _something_ to avoid blowing up */
}
}
{
#ifdef CR_ARB_pixel_buffer_object
{
return;
}
#endif
cr_server.head_spu->dispatch_table.GetTexLevelParameteriv(target, level, GL_TEXTURE_COMPRESSED_IMAGE_SIZE, &size);
/* XXX the pixel PACK parameter should be OK at this point */
}
else {
/* need to return _something_ to avoid blowing up */
}
}
#endif /* CR_ARB_texture_compression */
{
#ifdef CR_ARB_pixel_buffer_object
{
}
else
#endif
{
}
}