From 8895df0925fa4694e48a52c203a32e52e1a88185 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sun, 30 Apr 2006 15:00:39 +0000 Subject: [PATCH] - remove leftover anistropic filtering variables from glconfig_t - check size of glconfig_t to prevent accidential ABI breakage in the future --- code/renderer/tr_init.c | 5 +++++ code/renderer/tr_types.h | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/renderer/tr_init.c b/code/renderer/tr_init.c index b13d9d49..1b1bfc03 100644 --- a/code/renderer/tr_init.c +++ b/code/renderer/tr_init.c @@ -1070,6 +1070,11 @@ void R_Init( void ) { Com_Memset( &backEnd, 0, sizeof( backEnd ) ); Com_Memset( &tess, 0, sizeof( tess ) ); + if(sizeof(glconfig_t) != 11332) + { + ri.Error( ERR_FATAL, "Mod ABI incompatible: sizeof(glconfig_t) == %zd != 11332", sizeof(glconfig_t)); + } + // Swap_Init(); if ( (int)tess.xyz & 15 ) { diff --git a/code/renderer/tr_types.h b/code/renderer/tr_types.h index 4ed880ae..12b526e2 100644 --- a/code/renderer/tr_types.h +++ b/code/renderer/tr_types.h @@ -200,9 +200,6 @@ typedef struct { qboolean isFullscreen; qboolean stereoEnabled; qboolean smpActive; // dual processor - - qboolean textureFilterAnisotropic; - int maxAnisotropy; } glconfig_t; // FIXME: VM should be OS agnostic .. in theory