]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
14 years agodon't draw conback when the file is missing, behave as if
havoc [Wed, 13 Jan 2010 07:15:57 +0000 (07:15 +0000)]
don't draw conback when the file is missing, behave as if
scr_conbrightness is 0 in this case

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9832 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7588ae076a3b9dcde8484b63599e90d17d6afd34

14 years agoadd new pseudo variable $# containing the number of arguments to the alias
divverent [Tue, 12 Jan 2010 10:55:37 +0000 (10:55 +0000)]
add new pseudo variable $# containing the number of arguments to the alias

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9831 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b9ba00ee9a682a2ba3a627b8d6545bde54fe97a4

14 years agofix black models in fixed function rendering path
havoc [Tue, 12 Jan 2010 09:54:07 +0000 (09:54 +0000)]
fix black models in fixed function rendering path

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9830 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=726fd8b8faa9ba0ef77bdcd6ad4243a12d6e94ee

14 years agofix typo in SV_GetEntityLocalTagMatrix, should fix attachment on MD3
divverent [Tue, 12 Jan 2010 07:32:05 +0000 (07:32 +0000)]
fix typo in SV_GetEntityLocalTagMatrix, should fix attachment on MD3
models

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9829 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6d202bf5b0b21679bc0f93678ca273efeebd885e

14 years agopatch from div0 for SPR_OVERHEAD sprites 'virtual perspective', looks better. Move...
vortex [Mon, 11 Jan 2010 21:45:06 +0000 (21:45 +0000)]
patch from div0 for SPR_OVERHEAD sprites 'virtual perspective', looks better. Move some parms into cvars (see r_overheadsprites*).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9828 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=55064ddfc606ba38cc867c803a0d73efa6b8450b

14 years agosorry, forgot to remove debug prints, fixing
vortex [Mon, 11 Jan 2010 20:23:59 +0000 (20:23 +0000)]
sorry, forgot to remove debug prints, fixing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9827 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b898ec84882bc0d0bf43e21a822b3e7172c430c7

14 years agoadd new SPR_OVERHEAD (ident 7), a derivative of SPR_VP_PARALLEL with couple of hacks...
vortex [Mon, 11 Jan 2010 20:17:06 +0000 (20:17 +0000)]
add new SPR_OVERHEAD (ident 7), a derivative of SPR_VP_PARALLEL with couple of hacks for better use with overhead-mode sprite monsters.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9826 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1da037208c1b4182279a5ffa979a1fe23ee89fc3

14 years agooptimized pose math to not use intermediate matrix
eihrul [Mon, 11 Jan 2010 17:29:19 +0000 (17:29 +0000)]
optimized pose math to not use intermediate matrix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9825 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f5352fd59b6c6bc5589229670655f77f9e6069ed

14 years agofix model scaling on old zym and dpm files where the root bone was
havoc [Sat, 9 Jan 2010 20:47:13 +0000 (20:47 +0000)]
fix model scaling on old zym and dpm files where the root bone was
scaled

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9824 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1252f2c5b0f2ba9c0d8e99ffaae5d7dac6d979fa

14 years agofix compile warning
havoc [Sat, 9 Jan 2010 19:09:19 +0000 (19:09 +0000)]
fix compile warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9823 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=66dead284a69d3d520ba3b89934c5a47359b326e

14 years agoredesigned skeletal model animation bone pose format - instead of
havoc [Sat, 9 Jan 2010 08:41:34 +0000 (08:41 +0000)]
redesigned skeletal model animation bone pose format - instead of
float[12] matrix data it is now short[6] origin+quat data with
appropriate scale factors detected at load to preserve full range of
motion, this does however lose the ability to scale bones in a model...
this reduces memory usage significantly in some games

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9815 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=636c2207a7feebbc93dacfbe1e4626df48c0269b

14 years agoremove support for GL_EXT_compiled_vertex_array extension
havoc [Tue, 5 Jan 2010 09:33:35 +0000 (09:33 +0000)]
remove support for GL_EXT_compiled_vertex_array extension

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9782 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=bc9063582a5b12986a3f70b4eaa9ffaf1568f735

14 years agomoved R_Mesh_TexCoordPointer, R_Mesh_ColorPointer, GL_BlendFunc, and
havoc [Mon, 4 Jan 2010 19:29:33 +0000 (19:29 +0000)]
moved R_Mesh_TexCoordPointer, R_Mesh_ColorPointer, GL_BlendFunc, and
GL_AlphaTest calls to R_SetupShader_Surface for a slight speed gain
(less texcoord arrays active now in some cases)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9777 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5fd979a5cbde892830c4740fd23345bcf9fd8e0e

14 years agofix compile error
divverent [Sat, 9 Jan 2010 18:52:47 +0000 (18:52 +0000)]
fix compile error

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9822 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c4c515314af0d41476dd3dca99fa3891549a94a7

14 years agosilence warning about using uninitialized pose var
eihrul [Sat, 9 Jan 2010 18:48:38 +0000 (18:48 +0000)]
silence warning about using uninitialized pose var

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9821 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7a49ffd9c4ae3a47bc2cecdac2739d3aa7713f1b

14 years ago.dir -> .pk3dir only
divverent [Sat, 9 Jan 2010 18:47:00 +0000 (18:47 +0000)]
.dir -> .pk3dir only

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9820 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d7871dfaa3ae8039cc51b501e16298282b2baa12

14 years agoalso support the .dir and .d extensions for virtual packs
divverent [Sat, 9 Jan 2010 18:46:56 +0000 (18:46 +0000)]
also support the .dir and .d extensions for virtual packs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9819 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=46534e46c82c4a8e3822cbdf2b43a260a14f0f30

14 years agofix vpack support to actually work; use a pack_s structure for vpack items
divverent [Sat, 9 Jan 2010 18:46:52 +0000 (18:46 +0000)]
fix vpack support to actually work; use a pack_s structure for vpack items

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9818 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=46516a2f74efc5f36791d71b2fd3b0d319bea34a

14 years agofix some compile errors. Now it should work.
divverent [Sat, 9 Jan 2010 18:46:49 +0000 (18:46 +0000)]
fix some compile errors. Now it should work.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9817 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=11c4295b8ffc664deec6e3b01e90eaa2b03c0c7f

14 years agofirst vpack stuff
divverent [Sat, 9 Jan 2010 18:46:43 +0000 (18:46 +0000)]
first vpack stuff

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9816 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=61342c0b053838d77951ee4c02360fb735cef9e2

14 years agolog dds texture load failures (only happens with r_texture_dds_load 1)
havoc [Sat, 9 Jan 2010 08:38:20 +0000 (08:38 +0000)]
log dds texture load failures (only happens with r_texture_dds_load 1)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9814 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=214bdbea305237a14ff890f6a84b9197837f93b8

14 years agomore memory savings
havoc [Fri, 8 Jan 2010 08:53:30 +0000 (08:53 +0000)]
more memory savings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9813 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b2980c1b70bd2c5a643d704a68a4868a06dbcaf6

14 years agotexture management now uses a memexpandablearray_t instead of individual
havoc [Fri, 8 Jan 2010 08:52:59 +0000 (08:52 +0000)]
texture management now uses a memexpandablearray_t instead of individual
allocations

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9812 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=65ec80ed4ecbb10f6478127d766e4b4873be70aa

14 years agofix compile error
havoc [Fri, 8 Jan 2010 07:20:27 +0000 (07:20 +0000)]
fix compile error

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9811 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=246dd4cf0465a184e17f09f9bb7449004ccae4f4

14 years agofix size of entity_state_t (it was 98 bytes, now 96 bytes)
havoc [Fri, 8 Jan 2010 07:19:20 +0000 (07:19 +0000)]
fix size of entity_state_t (it was 98 bytes, now 96 bytes)
reduce memory usage by having server update render flags on
exteriormodeltoclient entities for each player they are sent to rather
than copying the entire entity_state_t array and modifying it, now the
EntityFrame*_WriteFrame functions take a pointer array

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9810 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1d060f60bce1d5ac45b1ef349c45ed5ef3e0dbeb

14 years agomore reductions in memory usage
havoc [Fri, 8 Jan 2010 06:57:50 +0000 (06:57 +0000)]
more reductions in memory usage

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9809 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=07eafbfea8fc99eebc3af835d07d554ad2e30089

14 years agodon't set DP_SMALLMEMORY by default
havoc [Fri, 8 Jan 2010 06:45:55 +0000 (06:45 +0000)]
don't set DP_SMALLMEMORY by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9808 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ead705287b98d64fc81a964fc8fbe9a07e2b9476

14 years agoreduce memory usage by several more megabytes
havoc [Fri, 8 Jan 2010 06:19:23 +0000 (06:19 +0000)]
reduce memory usage by several more megabytes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9807 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2de7d03fea0a1e695fd85df27d053d352e3bc371

14 years agolimit vertex lighting path (GL11/GL13) to 4 passes per light rather than
havoc [Fri, 8 Jan 2010 05:40:19 +0000 (05:40 +0000)]
limit vertex lighting path (GL11/GL13) to 4 passes per light rather than
64

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9806 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ae92f5da727207fbeaeac0fa1f4aded67e47e19a

14 years agosignificantly reduce code size in prvm_exec.c by simplifying the
havoc [Fri, 8 Jan 2010 05:38:48 +0000 (05:38 +0000)]
significantly reduce code size in prvm_exec.c by simplifying the
prvm_execprogram.h includes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9805 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fda81eb8eb6440b8bef219f615ea25a6073c0ba2

14 years agoreduce memory usage by several megabytes
havoc [Fri, 8 Jan 2010 05:04:05 +0000 (05:04 +0000)]
reduce memory usage by several megabytes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9804 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c7dbbb3b81a102d0bb9af389797209ad980cac1a

14 years agoreorganize textypeinfo_t
havoc [Fri, 8 Jan 2010 03:13:40 +0000 (03:13 +0000)]
reorganize textypeinfo_t

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9803 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5db0a892e2b134f3ffba6b24906514b7e8a43128

14 years agofix bug in tracebox->line and traceline->point redirection causing endposnudge to...
divverent [Thu, 7 Jan 2010 12:40:34 +0000 (12:40 +0000)]
fix bug in tracebox->line and traceline->point redirection causing endposnudge to be applied multiple times

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9802 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ff20752e083f1b17d1290c8d6ed293551a76b060

14 years agofix TEXTYPE_COLORBUFFER
havoc [Thu, 7 Jan 2010 02:50:13 +0000 (02:50 +0000)]
fix TEXTYPE_COLORBUFFER

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9801 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a4140691af7f9a76ed4c82355f98a0b8e367b03d

14 years agono longer uses rectangle textures for deferred rendering (reduces
havoc [Thu, 7 Jan 2010 01:17:13 +0000 (01:17 +0000)]
no longer uses rectangle textures for deferred rendering (reduces
extension requirements)
fixed several bugs with Cg shader
added TEXTYPE_COLORBUFFER for textures intended to be copied into, so
that it can be set to match the framebuffer

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9799 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=54b3bad79b60edd1c2b1be6c06c2dcc790274840

14 years agoreduce stack requirements
havoc [Thu, 7 Jan 2010 01:12:33 +0000 (01:12 +0000)]
reduce stack requirements

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9798 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1a807173f3ca900bd1d4575317b010bdbe1e76d7

14 years agoadded ft2 and utf8lib files
havoc [Thu, 7 Jan 2010 01:42:33 +0000 (01:42 +0000)]
added ft2 and utf8lib files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9800 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3addbfef832b3cdfca533fc10abc071830749916

14 years agoonly clear depth buffer bit for shadowmaps
eihrul [Wed, 6 Jan 2010 19:29:45 +0000 (19:29 +0000)]
only clear depth buffer bit for shadowmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9797 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=56b2babbc308954817d459ffc6732bb9aa6d852c

14 years agoonly issue one clear for 2D/rect shadowmaps
eihrul [Wed, 6 Jan 2010 19:15:31 +0000 (19:15 +0000)]
only issue one clear for 2D/rect shadowmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9796 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a2dfe0288dc645732f8dde991dcaf5b52b33239b

14 years agoimplemented obj model loading
Rudolf Polzer [Wed, 6 Jan 2010 10:59:40 +0000 (11:59 +0100)]
implemented obj model loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9780 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0d368b1865e1de4c00689959407d40bf6817233e

14 years ago::stable-branch::rebase=045f7768d970a449ecde1c762d141d83535170c1
Rudolf Polzer [Wed, 6 Jan 2010 10:03:21 +0000 (11:03 +0100)]
::stable-branch::rebase=045f7768d970a449ecde1c762d141d83535170c1

14 years ago::stable-branch::rebase=75b06d199054ffdac3fee96ca76d0028bb2eeb3a
Rudolf Polzer [Wed, 6 Jan 2010 10:02:01 +0000 (11:02 +0100)]
::stable-branch::rebase=75b06d199054ffdac3fee96ca76d0028bb2eeb3a

14 years agorenamed r_frame to r_textureframe for better readability and made it
havoc [Mon, 4 Jan 2010 20:06:03 +0000 (20:06 +0000)]
renamed r_frame to r_textureframe for better readability and made it
increment on every scene render

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9778 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=91fba1f2da941d5a9229048c07cce889774d8d03

14 years agofix some bugs with cgGL path
havoc [Tue, 5 Jan 2010 23:52:37 +0000 (23:52 +0000)]
fix some bugs with cgGL path

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9795 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=045f7768d970a449ecde1c762d141d83535170c1

14 years agoI used the code from before the utf8 changed but it used to allow to access invalid...
blub [Tue, 5 Jan 2010 20:12:41 +0000 (20:12 +0000)]
I used the code from before the utf8 changed but it used to allow to access invalid memory - fixed that

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9794 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=04b9f2c16039ab05fee8cf6de193eabd04202103

14 years agowith utf8 disabled, str2chr should now behave the way it used to
blub [Tue, 5 Jan 2010 20:10:00 +0000 (20:10 +0000)]
with utf8 disabled, str2chr should now behave the way it used to

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9793 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=02d7fcc5c3668e2ff5df5838fba4074f66c37842

14 years agowith utf8 disabled VM_str2chr should not use U+E0xx codes
blub [Tue, 5 Jan 2010 20:04:38 +0000 (20:04 +0000)]
with utf8 disabled VM_str2chr should not use U+E0xx codes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9792 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=978845bb7423e76ff99b9dc98dbe93315b732338

14 years agotextureGatherOffset fix - take #2
eihrul [Tue, 5 Jan 2010 18:54:24 +0000 (18:54 +0000)]
textureGatherOffset fix - take #2

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9790 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cdd2052ed9c261d72eeb456f64e6a99edaa87314

14 years agodon't use textureGatherOffset as Catalyst GLSL doesn't appear to implement it
eihrul [Tue, 5 Jan 2010 18:48:57 +0000 (18:48 +0000)]
don't use textureGatherOffset as Catalyst GLSL doesn't appear to implement it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9789 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=10933a4bc798e0cf97cd4d2dbc93d82f6388d554

14 years agofixed signed vs. unsigned warning
eihrul [Tue, 5 Jan 2010 18:37:00 +0000 (18:37 +0000)]
fixed signed vs. unsigned warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9787 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5d279c535afff8e7745989a7a4f35731e8e7ed00

14 years agofixed missing \n"
eihrul [Tue, 5 Jan 2010 18:34:06 +0000 (18:34 +0000)]
fixed missing \n"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9786 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=006ce514d0c3f0b307caed2f4fe951ea4f6ffb62

14 years agofixing a possible invalid memory access spotted by a_grue
blub [Tue, 5 Jan 2010 18:21:52 +0000 (18:21 +0000)]
fixing a possible invalid memory access spotted by a_grue

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9785 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a00b8833b1f90b51b8882f0976e8c59fe5754cca

14 years agofix some shader compile errors related to MODE_LIGHTDIRECTION
havoc [Tue, 5 Jan 2010 18:21:35 +0000 (18:21 +0000)]
fix some shader compile errors related to MODE_LIGHTDIRECTION

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9784 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4aace403959c72b0449368212b29a7d7dd550355

14 years agoMake SHADERPERMUTATION_COUNT be the actual size of the array.
blub [Tue, 5 Jan 2010 17:20:09 +0000 (17:20 +0000)]
Make SHADERPERMUTATION_COUNT be the actual size of the array.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9783 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=210695e98c4530c1f4999e89191659590f5f5c70

14 years agofix r_hdr intensity problems
havoc [Tue, 5 Jan 2010 09:16:24 +0000 (09:16 +0000)]
fix r_hdr intensity problems

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9781 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=75b06d199054ffdac3fee96ca76d0028bb2eeb3a

14 years agofix GLSL compile error on cubemap lights with deferred rendering
havoc [Mon, 4 Jan 2010 23:02:37 +0000 (23:02 +0000)]
fix GLSL compile error on cubemap lights with deferred rendering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9779 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dc94032bc95888a1bd92180885dadde40ef8ae95

14 years ago::stable-branch::reset=0dc7a8aa708e5d408eb1c8a82fa95e5c47665493
Rudolf Polzer [Tue, 5 Jan 2010 14:30:13 +0000 (15:30 +0100)]
::stable-branch::reset=0dc7a8aa708e5d408eb1c8a82fa95e5c47665493

14 years agopatch by a_grue: fix some memory leaks in the GLX client - the manpages confirm that...
blub [Mon, 4 Jan 2010 10:56:38 +0000 (10:56 +0000)]
patch by a_grue: fix some memory leaks in the GLX client - the manpages confirm that the data has to be freed by the caller

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9776 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoallow entity number reuse during PRVM_ED_LoadFromFile to get consistent entity number...
divverent [Sun, 3 Jan 2010 20:50:16 +0000 (20:50 +0000)]
allow entity number reuse during PRVM_ED_LoadFromFile to get consistent entity numbering on map loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9775 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoWhen loading savegames, unlink all edicts first. This prevents bugs from happening...
divverent [Sun, 3 Jan 2010 20:28:52 +0000 (20:28 +0000)]
When loading savegames, unlink all edicts first. This prevents bugs from happening on loading games when an entity number was used by the spawnfunctions of the map, but not by the savegame.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9774 d7cf8633-e32d-0410-b094-e92efae38249

14 years agor_glsl_dumpshader: shaderpermutationinfo[i].pretext needs to be checked, otherwise...
blub [Sun, 3 Jan 2010 15:02:04 +0000 (15:02 +0000)]
r_glsl_dumpshader: shaderpermutationinfo[i].pretext needs to be checked, otherwise it tries to use NULL in FS_Write and segfaults

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9773 d7cf8633-e32d-0410-b094-e92efae38249

14 years agowidth_of_factor is now useless since it's always equal to dw - replaced it
blub [Sun, 3 Jan 2010 11:46:38 +0000 (11:46 +0000)]
width_of_factor is now useless since it's always equal to dw - replaced it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9772 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoDo not load sizes < 0 at all.
blub [Sun, 3 Jan 2010 11:43:08 +0000 (11:43 +0000)]
Do not load sizes < 0 at all.
Trying a different snapping approach for width_of which doesn't ignore fnt->scale in DrawQ_* functions.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9771 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoload the freetype library in Font_Init already, and don't call Font_Init twice
blub [Sat, 2 Jan 2010 17:13:23 +0000 (17:13 +0000)]
load the freetype library in Font_Init already, and don't call Font_Init twice

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9770 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoupload all q1bsp lightmaps on first frame, rather than waiting for
havoc [Sat, 2 Jan 2010 17:03:26 +0000 (17:03 +0000)]
upload all q1bsp lightmaps on first frame, rather than waiting for
surfaces to become visible

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9769 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoon mac it's libfreetype.dylib and/or libfreetype.6.dylib
blub [Sat, 2 Jan 2010 16:33:02 +0000 (16:33 +0000)]
on mac it's libfreetype.dylib and/or libfreetype.6.dylib

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9768 d7cf8633-e32d-0410-b094-e92efae38249

14 years agowith mingw I get a libfreetype-6.dll so I guess the win32 DLL list for freetype shoul...
blub [Sat, 2 Jan 2010 16:03:02 +0000 (16:03 +0000)]
with mingw I get a libfreetype-6.dll so I guess the win32 DLL list for freetype should contain it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9767 d7cf8633-e32d-0410-b094-e92efae38249

14 years agospeed up PNG saving by about factor 4 by using fastest zlib mode, and no filters...
divverent [Fri, 1 Jan 2010 21:42:19 +0000 (21:42 +0000)]
speed up PNG saving by about factor 4 by using fastest zlib mode, and no filters. Who cares for this small increase of file size.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9766 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreset prevch after drawing the shadow to not kern the last shadow-character with...
blub [Fri, 1 Jan 2010 17:04:55 +0000 (17:04 +0000)]
reset prevch after drawing the shadow to not kern the last shadow-character with the first normal character

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9765 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoagain, a stupid fix for stupid MSVC not supporting a 11 years old C standard
divverent [Fri, 1 Jan 2010 13:57:28 +0000 (13:57 +0000)]
again, a stupid fix for stupid MSVC not supporting a 11 years old C standard

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9764 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix a typo in the pixel snapping
divverent [Fri, 1 Jan 2010 13:56:07 +0000 (13:56 +0000)]
fix a typo in the pixel snapping

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9763 d7cf8633-e32d-0410-b094-e92efae38249

14 years agopatch by Blub and me:
divverent [Fri, 1 Jan 2010 13:35:40 +0000 (13:35 +0000)]
patch by Blub and me:
- width_of: separate snapped character width array per-size
- snap fonts at load time, not at render time (saves on render time)
- fix font size snapping to both compare width and height
- r_font_kerning cvar

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9762 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomake the JPEGs progressive
divverent [Thu, 31 Dec 2009 14:47:18 +0000 (14:47 +0000)]
make the JPEGs progressive

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9761 d7cf8633-e32d-0410-b094-e92efae38249

14 years agonew cvar: scr_screenshot_png (and obvious PNG screenshotting code to support it)
divverent [Thu, 31 Dec 2009 14:44:18 +0000 (14:44 +0000)]
new cvar: scr_screenshot_png (and obvious PNG screenshotting code to support it)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9760 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoCheck sfx->fetcher instead of ch_ind < 0 before freeing an sfx, since ch_ind < 0...
blub [Thu, 31 Dec 2009 09:56:34 +0000 (09:56 +0000)]
Check sfx->fetcher instead of ch_ind < 0 before freeing an sfx, since ch_ind < 0 does NOT mean the sfx file didn't exist, but that it failed to play for other (unlikely) reasons.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9759 d7cf8633-e32d-0410-b094-e92efae38249

14 years agonotice the input data has no useful data on the alpha channel, and fall back to RGB...
divverent [Thu, 31 Dec 2009 09:32:14 +0000 (09:32 +0000)]
notice the input data has no useful data on the alpha channel, and fall back to RGB texture compression (DXT1).
Saves GPU memory when compressing textures.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9758 d7cf8633-e32d-0410-b094-e92efae38249

14 years agodue to performance issues with streaming ogg decoding of all sounds, the
havoc [Thu, 31 Dec 2009 00:19:08 +0000 (00:19 +0000)]
due to performance issues with streaming ogg decoding of all sounds, the
cvar snd_streaming has been brought back from r9487 and defaults to 1
(decode small sounds at load), a new mode of 2 has been added
snd_streaming 0 = always load entire sound, 1 = decode small sounds, 2 =
never decode at load (least memory, slow)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9757 d7cf8633-e32d-0410-b094-e92efae38249

14 years agodo not set hasalphaflag on dds images that have alpha but were loaded
havoc [Wed, 30 Dec 2009 22:33:59 +0000 (22:33 +0000)]
do not set hasalphaflag on dds images that have alpha but were loaded
without TEXF_ALPHA

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9756 d7cf8633-e32d-0410-b094-e92efae38249

14 years agodefault r_lerpsprites to 0 because it causes flickering
havoc [Wed, 30 Dec 2009 20:03:51 +0000 (20:03 +0000)]
default r_lerpsprites to 0 because it causes flickering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9755 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoremove an unused variable
havoc [Wed, 30 Dec 2009 19:40:42 +0000 (19:40 +0000)]
remove an unused variable

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9754 d7cf8633-e32d-0410-b094-e92efae38249

14 years agochange WIN64RELEASE options
havoc [Wed, 30 Dec 2009 19:37:33 +0000 (19:37 +0000)]
change WIN64RELEASE options

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9753 d7cf8633-e32d-0410-b094-e92efae38249

14 years agobuffer up to 32 recent frame numbers for clc_ack to prevent entity
havoc [Wed, 30 Dec 2009 19:27:03 +0000 (19:27 +0000)]
buffer up to 32 recent frame numbers for clc_ack to prevent entity
resyncs on the server when the client framerate is much lower than the
server framerate, repeat frame numbers of previous input packet
(cl_netrepeatinput cvar, just like clc_move repeats)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9752 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix water rendering bugs where the clipping plane was not being used
havoc [Wed, 30 Dec 2009 16:42:21 +0000 (16:42 +0000)]
fix water rendering bugs where the clipping plane was not being used

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9751 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix engine version display
divverent [Wed, 30 Dec 2009 13:37:17 +0000 (13:37 +0000)]
fix engine version display

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9750 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadded WIN64RELEASE flags
havoc [Wed, 30 Dec 2009 12:19:31 +0000 (12:19 +0000)]
added WIN64RELEASE flags

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9749 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix water rendering
havoc [Wed, 30 Dec 2009 12:19:15 +0000 (12:19 +0000)]
fix water rendering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9748 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoremove some unwanted debug prints
divverent [Wed, 30 Dec 2009 11:27:53 +0000 (11:27 +0000)]
remove some unwanted debug prints

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9747 d7cf8633-e32d-0410-b094-e92efae38249

14 years agodon't spatialize twice :P
divverent [Wed, 30 Dec 2009 11:24:51 +0000 (11:24 +0000)]
don't spatialize twice :P

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9746 d7cf8633-e32d-0410-b094-e92efae38249

14 years agohopefully fix a race condition in S_StartSound
divverent [Wed, 30 Dec 2009 11:24:10 +0000 (11:24 +0000)]
hopefully fix a race condition in S_StartSound

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9745 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoget rid of a warning
blub [Wed, 30 Dec 2009 11:09:00 +0000 (11:09 +0000)]
get rid of a warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9744 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd back -fno-strict-aliasing to hush warnings
havoc [Wed, 30 Dec 2009 11:05:08 +0000 (11:05 +0000)]
add back -fno-strict-aliasing to hush warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9743 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomore redundant suffix elimination
divverent [Wed, 30 Dec 2009 09:26:56 +0000 (09:26 +0000)]
more redundant suffix elimination

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9742 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoremove redundant _Size suffix from textwidth functions, as now all of them would...
divverent [Wed, 30 Dec 2009 09:14:48 +0000 (09:14 +0000)]
remove redundant _Size suffix from textwidth functions, as now all of them would have it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9741 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix alignment of fps counter with ft2 fonts, and other alignment issues
divverent [Wed, 30 Dec 2009 09:10:19 +0000 (09:10 +0000)]
fix alignment of fps counter with ft2 fonts, and other alignment issues

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9740 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd the intoverflow lib
divverent [Wed, 30 Dec 2009 07:54:24 +0000 (07:54 +0000)]
add the intoverflow lib

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9739 d7cf8633-e32d-0410-b094-e92efae38249

14 years agohandle integer overflow when DDS loading
divverent [Wed, 30 Dec 2009 07:54:06 +0000 (07:54 +0000)]
handle integer overflow when DDS loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9738 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix the overflow checks :(
divverent [Wed, 30 Dec 2009 07:40:48 +0000 (07:40 +0000)]
fix the overflow checks :(

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9737 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoDDS: handle file size errors
divverent [Wed, 30 Dec 2009 07:38:47 +0000 (07:38 +0000)]
DDS: handle file size errors

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9736 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoimplemented support for caching compressed textures (.dds files),
havoc [Wed, 30 Dec 2009 02:21:16 +0000 (02:21 +0000)]
implemented support for caching compressed textures (.dds files),
disabled by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9735 d7cf8633-e32d-0410-b094-e92efae38249

14 years agousing tables for u8_analyze to speed it up
blub [Tue, 29 Dec 2009 14:04:29 +0000 (14:04 +0000)]
using tables for u8_analyze to speed it up

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9734 d7cf8633-e32d-0410-b094-e92efae38249