@@ -331,13 +331,13 @@ static void R_Bloom_InitTextures( void )
331331
332332 data = ri .Hunk_AllocateTempMemory ( bloom .screen .width * bloom .screen .height * 4 );
333333 Com_Memset ( data , 0 , bloom .screen .width * bloom .screen .height * 4 );
334- bloom .screen .texture = R_CreateImage ( "***bloom screen texture***" , data , bloom .screen .width , bloom .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
334+ bloom .screen .texture = R_CreateImage ( "***bloom screen texture***" , data , bloom .screen .width , bloom .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
335335 ri .Hunk_FreeTempMemory ( data );
336336
337337 data = ri .Hunk_AllocateTempMemory ( bloom .effect .width * bloom .effect .height * 4 );
338338 Com_Memset ( data , 0 , bloom .effect .width * bloom .effect .height * 4 );
339- bloom .effect .texture = R_CreateImage ( "***bloom effect texture***" , data , bloom .effect .width , bloom .effect .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
340- bloom .effect2 .texture = R_CreateImage ( "***bloom effect texture 2***" , data , bloom .effect .width , bloom .effect .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
339+ bloom .effect .texture = R_CreateImage ( "***bloom effect texture***" , data , bloom .effect .width , bloom .effect .height , 0 , 0 , GL_CLAMP_TO_EDGE );
340+ bloom .effect2 .texture = R_CreateImage ( "***bloom effect texture 2***" , data , bloom .effect .width , bloom .effect .height , 0 , 0 , GL_CLAMP_TO_EDGE );
341341 ri .Hunk_FreeTempMemory ( data );
342342 bloom .started = qtrue ;
343343 force32upload = 0 ;
@@ -1170,7 +1170,7 @@ static void R_Postprocess_InitTextures( void )
11701170
11711171 data = ri .Hunk_AllocateTempMemory ( postproc .screen .width * postproc .screen .height * 4 );
11721172 Com_Memset ( data , 0 , postproc .screen .width * postproc .screen .height * 4 );
1173- postproc .screen .texture = R_CreateImage ( "***postproc screen texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1173+ postproc .screen .texture = R_CreateImage ( "***postproc screen texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
11741174 ri .Hunk_FreeTempMemory ( data );
11751175
11761176 // leilei - tv output texture
@@ -1207,7 +1207,7 @@ static void R_Postprocess_InitTextures( void )
12071207
12081208 data = ri .Hunk_AllocateTempMemory ( tvWidth * tvHeight * 4 );
12091209 Com_Memset ( data , 0 , tvWidth * tvHeight * 4 );
1210- postproc .tv .texture = R_CreateImage ( "***tv output screen texture***" , data , tvWidth , tvHeight , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1210+ postproc .tv .texture = R_CreateImage ( "***tv output screen texture***" , data , tvWidth , tvHeight , 0 , 0 , GL_CLAMP_TO_EDGE );
12111211 ri .Hunk_FreeTempMemory ( data );
12121212 }
12131213
@@ -1216,15 +1216,15 @@ static void R_Postprocess_InitTextures( void )
12161216 if (r_motionblur -> integer > 2 ) {
12171217 data = ri .Hunk_AllocateTempMemory ( postproc .screen .width * postproc .screen .height * 4 );
12181218 Com_Memset ( data , 0 , postproc .screen .width * postproc .screen .height * 4 );
1219- postproc .motion1 .texture = R_CreateImage ( "***motionblur1 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1220- postproc .motion2 .texture = R_CreateImage ( "***motionblur2 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1221- postproc .motion3 .texture = R_CreateImage ( "***motionblur3 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1222- postproc .motion4 .texture = R_CreateImage ( "***motionblur4 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1223- postproc .motion5 .texture = R_CreateImage ( "***motionblur5 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1224- postproc .mpass1 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1225- postproc .mpass2 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1226- postproc .mpass3 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1227- postproc .mpass4 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1219+ postproc .motion1 .texture = R_CreateImage ( "***motionblur1 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1220+ postproc .motion2 .texture = R_CreateImage ( "***motionblur2 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1221+ postproc .motion3 .texture = R_CreateImage ( "***motionblur3 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1222+ postproc .motion4 .texture = R_CreateImage ( "***motionblur4 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1223+ postproc .motion5 .texture = R_CreateImage ( "***motionblur5 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1224+ postproc .mpass1 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1225+ postproc .mpass2 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1226+ postproc .mpass3 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
1227+ postproc .mpass4 .texture = R_CreateImage ( "***motionaccum1 texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
12281228 ri .Hunk_FreeTempMemory ( data );
12291229 }
12301230
@@ -1233,7 +1233,7 @@ static void R_Postprocess_InitTextures( void )
12331233 data = ri .Hunk_AllocateTempMemory ( postproc .screen .width * postproc .screen .height * 4 );
12341234 Com_Memset ( data , 0 , postproc .screen .width * postproc .screen .height * 4 );
12351235 depthimage = 1 ;
1236- postproc .depth .texture = R_CreateImage ( "***depthbuffer texture***" , data , postproc .screen .width , postproc .screen .height , qfalse , qfalse , GL_CLAMP_TO_EDGE );
1236+ postproc .depth .texture = R_CreateImage ( "***depthbuffer texture***" , data , postproc .screen .width , postproc .screen .height , 0 , 0 , GL_CLAMP_TO_EDGE );
12371237 depthimage = 0 ;
12381238 ri .Hunk_FreeTempMemory ( data );
12391239
0 commit comments