Find the answer to your Linux question:
Results 1 to 2 of 2
Hello . to all im barely new on linux and Wine,, but I want to play Cod4 under Wine,, I found in the web of wine that I need to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Location
    Mexico
    Posts
    5

    Cod4 on Wine , need patch, how to?


    Hello . to all

    im barely new on linux and Wine,, but I want to play Cod4 under Wine,, I found in the web of wine that I need to patch Wine with a patch that was made original for 3dmark,, bur that fix the problems on Cod4, the problem is that I don't know how to apply this patch to Wine. I have the most recent version of Wine 0.9.49.

    this is the patch:

    diff -Naur wine.old/dlls/wined3d/directx.c wine/dlls/wined3d/directx.c
    --- wine.old/dlls/wined3d/directx.c 2007-06-27 16:12:55.000000000 +0200
    +++ wine/dlls/wined3d/directx.c 2007-07-03 23:33:08.000000000 +0200
    @@ -674,7 +674,7 @@
    }
    if (gl_info->supported[ARB_MULTITEXTURE]) {
    glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &gl_max);
    - gl_info->max_textures = min(MAX_TEXTURES, gl_max);
    + gl_info->max_textures = 8;
    TRACE_(d3d_caps)("Max textures: %d\n", gl_info->max_textures);

    if (gl_info->supported[NV_REGISTER_COMBINERS]) {
    @@ -1872,7 +1872,11 @@
    WINED3DPMISCCAPS_CLIPTLVERTS |
    WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS |
    WINED3DPMISCCAPS_MASKZ |
    - WINED3DPMISCCAPS_BLENDOP;
    + WINED3DPMISCCAPS_TSSARGTEMP |
    + WINED3DPMISCCAPS_FOGANDSPECULARALPHA |
    + WINED3DPMISCCAPS_SEPARATEALPHABLEND |
    + WINED3DPMISCCAPS_BLENDOP |
    + WINED3DPMISCCAPS_FOGVERTEXCLAMPED;
    /* TODO:
    WINED3DPMISCCAPS_NULLREFERENCE
    WINED3DPMISCCAPS_INDEPENDENTWRITEMASKS
    @@ -2185,7 +2189,7 @@
    *pCaps->MaxVertexBlendMatrixIndex = 0;

    *pCaps->MaxAnisotropy = GL_LIMITS(anisotropy);
    - *pCaps->MaxPointSize = GL_LIMITS(pointsize);
    + *pCaps->MaxPointSize = 64.0f;


    *pCaps->VertexProcessingCaps = WINED3DVTXPCAPS_DIRECTIONALLIGHTS |
    @@ -2247,7 +2251,10 @@
    ------------------------------------------------ */
    if (This->dxVersion > {
    /* d3d9.dll sets D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES here because StretchRects is implemented in d3d9 */
    - *pCaps->DevCaps2 = WINED3DDEVCAPS2_STREAMOFFSET;
    + *pCaps->DevCaps2 = WINED3DDEVCAPS2_STREAMOFFSET |
    + WINED3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES |
    + WINED3DDEVCAPS2_PRESAMPLEDDMAPNPATCH |
    + WINED3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET ;
    /* TODO: VS3.0 needs at least D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET */
    *pCaps->MaxNpatchTessellationLevel = 0;
    *pCaps->MasterAdapterOrdinal = 0;
    But how exactly do I add this patch to Wine??

    thanks for all.
    and sorry for my English.

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •