Implement RE_DrawBackground_DrawPixels

This commit is contained in:
smallmodel 2024-09-15 01:12:00 +02:00
parent 844a72e0f3
commit 6fb9ab078e
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -331,7 +331,22 @@ RE_DrawBackground_DrawPixels
================
*/
void RE_DrawBackground_DrawPixels(int cols, int rows, int bgr, byte* data) {
// FIXME: stub
R_SyncRenderThread();
GL_State(0);
qglDisable(GL_TEXTURE_2D);
qglPixelZoom(glConfig.vidWidth / rows, glConfig.vidHeight / cols);
if (bgr) {
qglDrawPixels(cols, rows, GL_BGR, GL_UNSIGNED_BYTE, data);
} else {
qglDrawPixels(cols, rows, GL_RGB, GL_UNSIGNED_BYTE, data);
}
qglPixelZoom(1.0, 1.0);
qglEnable(GL_TEXTURE_2D);
}
/*