diff --git a/ref_gl/gl_backend.c b/ref_gl/gl_backend.c index 2706c145..ffc56ab0 100644 --- a/ref_gl/gl_backend.c +++ b/ref_gl/gl_backend.c @@ -465,13 +465,13 @@ qboolean VID_ScreenShot( const char *filename, int shot_type ) r_shot->width = (gpGlobals->width + 3) & ~3; r_shot->height = (gpGlobals->height + 3) & ~3; r_shot->flags = IMAGE_HAS_COLOR; - r_shot->type = PF_RGB_24; + r_shot->type = PF_RGBA_32; r_shot->size = r_shot->width * r_shot->height * gEngfuncs.Image_GetPFDesc( r_shot->type )->bpp; r_shot->palette = NULL; r_shot->buffer = Mem_Malloc( r_temppool, r_shot->size ); // get screen frame - pglReadPixels( 0, 0, r_shot->width, r_shot->height, GL_RGB, GL_UNSIGNED_BYTE, r_shot->buffer ); + pglReadPixels( 0, 0, r_shot->width, r_shot->height, GL_RGBA, GL_UNSIGNED_BYTE, r_shot->buffer ); switch( shot_type ) {