winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
May 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
715 discussions
Start a n
N
ew thread
H. Verbeet : wined3d: Load texture coordinates even if no texture is bound to that stage at this time .
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: 79ca4e022d593ec6106bad1e1ffde7b8c31ad01b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=79ca4e022d593ec6106bad1e1…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Wed May 9 19:08:27 2007 +0200 wined3d: Load texture coordinates even if no texture is bound to that stage at this time. --- dlls/wined3d/state.c | 63 +++++++++++++++++++++++--------------------------- 1 files changed, 29 insertions(+), 34 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index c0643a2..ba25501 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1825,46 +1825,41 @@ static void loadTexCoords(IWineD3DStateBlockImpl *stateblock, WineDirect3DVertex unsigned int mapped_stage = 0; unsigned int textureNo = 0; + /* The code below uses glClientActiveTexture and glMultiTexCoord* which are all part of the GL_ARB_multitexture extension. */ + /* Abort if we don't support the extension. */ + if (!GL_SUPPORT(ARB_MULTITEXTURE)) { + FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n"); + return; + } + for (textureNo = 0; textureNo < GL_LIMITS(texture_stages); ++textureNo) { - /* The code below uses glClientActiveTexture and glMultiTexCoord* which are all part of the GL_ARB_multitexture extension. */ - /* Abort if we don't support the extension. */ - if (!GL_SUPPORT(ARB_MULTITEXTURE)) { - FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n"); - continue; - } + int coordIdx = stateblock->textureState[textureNo][WINED3DTSS_TEXCOORDINDEX]; - if (stateblock->textures[textureNo]) { - int coordIdx = stateblock->textureState[textureNo][WINED3DTSS_TEXCOORDINDEX]; + mapped_stage = stateblock->wineD3DDevice->texUnitMap[textureNo]; + if (mapped_stage == -1) continue; + + if (coordIdx < MAX_TEXTURES && (sd->u.s.texCoords[coordIdx].lpData || sd->u.s.texCoords[coordIdx].VBO)) { + TRACE("Setting up texture %u, idx %d, cordindx %u, data %p\n", + textureNo, mapped_stage, coordIdx, sd->u.s.texCoords[coordIdx].lpData); + + if (*curVBO != sd->u.s.texCoords[coordIdx].VBO) { + GL_EXTCALL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, sd->u.s.texCoords[coordIdx].VBO)); + checkGLcall("glBindBufferARB"); + *curVBO = sd->u.s.texCoords[coordIdx].VBO; + } - mapped_stage = stateblock->wineD3DDevice->texUnitMap[textureNo]; - /* The gl texture unit will never be -1 for a bound texture */ GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage)); checkGLcall("glClientActiveTextureARB"); - if (coordIdx >= MAX_TEXTURES) { - VTRACE(("tex: %d - Skip tex coords, as being system generated\n", textureNo)); - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); - } else if (sd->u.s.texCoords[coordIdx].lpData == NULL && sd->u.s.texCoords[coordIdx].VBO == 0) { - VTRACE(("Bound texture but no texture coordinates supplied, so skipping\n")); - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); - } else { - TRACE("Setting up texture %u, idx %d, cordindx %u, data %p\n", - textureNo, mapped_stage, coordIdx, sd->u.s.texCoords[coordIdx].lpData); - if (*curVBO != sd->u.s.texCoords[coordIdx].VBO) { - GL_EXTCALL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, sd->u.s.texCoords[coordIdx].VBO)); - checkGLcall("glBindBufferARB"); - *curVBO = sd->u.s.texCoords[coordIdx].VBO; - } - /* The coords to supply depend completely on the fvf / vertex shader */ - glTexCoordPointer( - WINED3D_ATR_SIZE(sd->u.s.texCoords[coordIdx].dwType), - WINED3D_ATR_GLTYPE(sd->u.s.texCoords[coordIdx].dwType), - sd->u.s.texCoords[coordIdx].dwStride, - sd->u.s.texCoords[coordIdx].lpData + stateblock->loadBaseVertexIndex * sd->u.s.texCoords[coordIdx].dwStride + offset[sd->u.s.texCoords[coordIdx].streamNo]); - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - } - } else if (!GL_SUPPORT(NV_REGISTER_COMBINERS)) { - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); + /* The coords to supply depend completely on the fvf / vertex shader */ + glTexCoordPointer( + WINED3D_ATR_SIZE(sd->u.s.texCoords[coordIdx].dwType), + WINED3D_ATR_GLTYPE(sd->u.s.texCoords[coordIdx].dwType), + sd->u.s.texCoords[coordIdx].dwStride, + sd->u.s.texCoords[coordIdx].lpData + stateblock->loadBaseVertexIndex * sd->u.s.texCoords[coordIdx].dwStride + offset[sd->u.s.texCoords[coordIdx].streamNo]); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + } else { + GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); } } if (GL_SUPPORT(NV_REGISTER_COMBINERS)) {
1
0
0
0
H. Verbeet : wined3d: Split texture coordinate loading from loadVertexData( ).
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: cde60c0b94fd5a28b7754986063e525d2e8a7d5a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cde60c0b94fd5a28b77549860…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Wed May 9 19:08:10 2007 +0200 wined3d: Split texture coordinate loading from loadVertexData(). --- dlls/wined3d/state.c | 130 +++++++++++++++++++++++++++----------------------- 1 files changed, 70 insertions(+), 60 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 062e5f7..c0643a2 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1811,7 +1811,69 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W } -static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVertexStridedData *sd); +static void unloadTexCoords(IWineD3DStateBlockImpl *stateblock) { + int texture_idx; + + for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) { + GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx)); + glDisableClientState(GL_TEXTURE_COORD_ARRAY); + } +} + +static void loadTexCoords(IWineD3DStateBlockImpl *stateblock, WineDirect3DVertexStridedData *sd, GLint *curVBO) { + UINT *offset = stateblock->streamOffset; + unsigned int mapped_stage = 0; + unsigned int textureNo = 0; + + for (textureNo = 0; textureNo < GL_LIMITS(texture_stages); ++textureNo) { + /* The code below uses glClientActiveTexture and glMultiTexCoord* which are all part of the GL_ARB_multitexture extension. */ + /* Abort if we don't support the extension. */ + if (!GL_SUPPORT(ARB_MULTITEXTURE)) { + FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n"); + continue; + } + + if (stateblock->textures[textureNo]) { + int coordIdx = stateblock->textureState[textureNo][WINED3DTSS_TEXCOORDINDEX]; + + mapped_stage = stateblock->wineD3DDevice->texUnitMap[textureNo]; + /* The gl texture unit will never be -1 for a bound texture */ + GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage)); + checkGLcall("glClientActiveTextureARB"); + + if (coordIdx >= MAX_TEXTURES) { + VTRACE(("tex: %d - Skip tex coords, as being system generated\n", textureNo)); + GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); + } else if (sd->u.s.texCoords[coordIdx].lpData == NULL && sd->u.s.texCoords[coordIdx].VBO == 0) { + VTRACE(("Bound texture but no texture coordinates supplied, so skipping\n")); + GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); + } else { + TRACE("Setting up texture %u, idx %d, cordindx %u, data %p\n", + textureNo, mapped_stage, coordIdx, sd->u.s.texCoords[coordIdx].lpData); + if (*curVBO != sd->u.s.texCoords[coordIdx].VBO) { + GL_EXTCALL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, sd->u.s.texCoords[coordIdx].VBO)); + checkGLcall("glBindBufferARB"); + *curVBO = sd->u.s.texCoords[coordIdx].VBO; + } + /* The coords to supply depend completely on the fvf / vertex shader */ + glTexCoordPointer( + WINED3D_ATR_SIZE(sd->u.s.texCoords[coordIdx].dwType), + WINED3D_ATR_GLTYPE(sd->u.s.texCoords[coordIdx].dwType), + sd->u.s.texCoords[coordIdx].dwStride, + sd->u.s.texCoords[coordIdx].lpData + stateblock->loadBaseVertexIndex * sd->u.s.texCoords[coordIdx].dwStride + offset[sd->u.s.texCoords[coordIdx].streamNo]); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + } + } else if (!GL_SUPPORT(NV_REGISTER_COMBINERS)) { + GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); + } + } + if (GL_SUPPORT(NV_REGISTER_COMBINERS)) { + /* The number of the mapped stages increases monotonically, so it's fine to use the last used one */ + for (textureNo = mapped_stage + 1; textureNo < GL_LIMITS(textures); ++textureNo) { + GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); + } + } +} static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) { DWORD stage = (state - STATE_TEXTURESTAGE(0, 0)) / WINED3D_HIGHEST_TEXTURE_STATE; @@ -1983,11 +2045,14 @@ static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, Wine if(!isStateDirty(context, STATE_VDECL) && context->namedArraysLoaded) { /* Reload the arrays if we are using fixed function arrays to reflect the selected coord input - * source. Call loadVertexData directly because there is no need to reparse the vertex declaration + * source. Call loadTexCoords directly because there is no need to reparse the vertex declaration * and do all the things linked to it * TODO: Tidy that up to reload only the arrays of the changed unit */ - loadVertexData(stateblock, &stateblock->wineD3DDevice->strided_streams); + GLint curVBO = GL_SUPPORT(ARB_VERTEX_BUFFER_OBJECT) ? -1 : 0; + + unloadTexCoords(stateblock); + loadTexCoords(stateblock, &stateblock->wineD3DDevice->strided_streams, &curVBO); } } @@ -2528,8 +2593,6 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock * TODO: Only load / unload arrays if we have to. */ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) { - int texture_idx; - glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_NORMAL_ARRAY); glDisableClientState(GL_COLOR_ARRAY); @@ -2541,10 +2604,7 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) { } else if (GL_SUPPORT(EXT_VERTEX_WEIGHTING)) { glDisableClientState(GL_VERTEX_WEIGHT_ARRAY_EXT); } - for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) { - GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx)); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); - } + unloadTexCoords(stateblock); } /* This should match any arrays loaded in loadNumberedArrays @@ -2691,10 +2751,8 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock, WineDi /* Used from 2 different functions, and too big to justify making it inlined */ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVertexStridedData *sd) { - unsigned int textureNo = 0; UINT *offset = stateblock->streamOffset; GLint curVBO = GL_SUPPORT(ARB_VERTEX_BUFFER_OBJECT) ? -1 : 0; - unsigned int mapped_stage = 0; TRACE("Using fast vertex array code\n"); @@ -2967,55 +3025,7 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte } /* Texture coords -------------------------------------------*/ - - for (textureNo = 0; textureNo < GL_LIMITS(texture_stages); ++textureNo) { - /* The code below uses glClientActiveTexture and glMultiTexCoord* which are all part of the GL_ARB_multitexture extension. */ - /* Abort if we don't support the extension. */ - if (!GL_SUPPORT(ARB_MULTITEXTURE)) { - FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n"); - continue; - } - - if (stateblock->textures[textureNo] != NULL) { - int coordIdx = stateblock->textureState[textureNo][WINED3DTSS_TEXCOORDINDEX]; - - mapped_stage = stateblock->wineD3DDevice->texUnitMap[textureNo]; - /* The gl texture unit will never be -1 for a bound texture */ - GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage)); - checkGLcall("glClientActiveTextureARB"); - - if (coordIdx >= MAX_TEXTURES) { - VTRACE(("tex: %d - Skip tex coords, as being system generated\n", textureNo)); - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); - } else if (sd->u.s.texCoords[coordIdx].lpData == NULL && sd->u.s.texCoords[coordIdx].VBO == 0) { - VTRACE(("Bound texture but no texture coordinates supplied, so skipping\n")); - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); - } else { - TRACE("Setting up texture %u, idx %d, cordindx %u, data %p\n", - textureNo, mapped_stage, coordIdx, sd->u.s.texCoords[coordIdx].lpData); - if(curVBO != sd->u.s.texCoords[coordIdx].VBO) { - GL_EXTCALL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, sd->u.s.texCoords[coordIdx].VBO)); - checkGLcall("glBindBufferARB"); - curVBO = sd->u.s.texCoords[coordIdx].VBO; - } - /* The coords to supply depend completely on the fvf / vertex shader */ - glTexCoordPointer( - WINED3D_ATR_SIZE(sd->u.s.texCoords[coordIdx].dwType), - WINED3D_ATR_GLTYPE(sd->u.s.texCoords[coordIdx].dwType), - sd->u.s.texCoords[coordIdx].dwStride, - sd->u.s.texCoords[coordIdx].lpData + stateblock->loadBaseVertexIndex * sd->u.s.texCoords[coordIdx].dwStride + offset[sd->u.s.texCoords[coordIdx].streamNo]); - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - } - } else if (!GL_SUPPORT(NV_REGISTER_COMBINERS)) { - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); - } - } - if (GL_SUPPORT(NV_REGISTER_COMBINERS)) { - /* The number of the mapped stages increases monotonically, so it's fine to use the last used one */ - for (textureNo = mapped_stage + 1; textureNo < GL_LIMITS(textures); ++textureNo) { - GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); - } - } + loadTexCoords(stateblock, sd, &curVBO); } static inline void drawPrimitiveTraceDataLocations(
1
0
0
0
H. Verbeet : wined3d: Calling glDisableClientState() from loadVertexData() is redundant.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: 5188ab4efaa103f1bbf28ef5a973434d99316c68 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5188ab4efaa103f1bbf28ef5a…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Wed May 9 19:07:48 2007 +0200 wined3d: Calling glDisableClientState() from loadVertexData() is redundant. unloadVertexData() will already have done this if necessary. --- dlls/wined3d/state.c | 26 -------------------------- 1 files changed, 0 insertions(+), 26 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 281f8bb..062e5f7 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -2763,15 +2763,8 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte } else { if (GL_SUPPORT(ARB_VERTEX_BLEND)) { static const GLbyte one = 1; - glDisableClientState(GL_WEIGHT_ARRAY_ARB); - checkGLcall("glEnableClientState(GL_WEIGHT_ARRAY_ARB)"); GL_EXTCALL(glWeightbvARB(1, &one)); checkGLcall("glWeightivARB(GL_LIMITS(blends), weights)"); - } else if (GL_SUPPORT(EXT_VERTEX_WEIGHTING)) { - TRACE(" EXT_VERTEX_WEIGHTING\n"); - glDisableClientState(GL_VERTEX_WEIGHT_ARRAY_EXT); - checkGLcall("glDisableClientState(GL_VERTEX_WEIGHT_ARRAY_EXT)"); - } } @@ -2879,10 +2872,6 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte checkGLcall("glVertexPointer(...)"); glEnableClientState(GL_VERTEX_ARRAY); checkGLcall("glEnableClientState(GL_VERTEX_ARRAY)"); - - } else { - glDisableClientState(GL_VERTEX_ARRAY); - checkGLcall("glDisableClientState(GL_VERTEX_ARRAY)"); } /* Normals -------------------------------------------------*/ @@ -2905,8 +2894,6 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte checkGLcall("glEnableClientState(GL_NORMAL_ARRAY)"); } else { - glDisableClientState(GL_NORMAL_ARRAY); - checkGLcall("glDisableClientState(GL_NORMAL_ARRAY)"); glNormal3f(0, 0, 1); checkGLcall("glNormal3f(0, 0, 1)"); } @@ -2939,8 +2926,6 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte checkGLcall("glEnableClientState(GL_COLOR_ARRAY)"); } else { - glDisableClientState(GL_COLOR_ARRAY); - checkGLcall("glDisableClientState(GL_COLOR_ARRAY)"); glColor4f(1.0f, 1.0f, 1.0f, 1.0f); checkGLcall("glColor4f(1, 1, 1, 1)"); } @@ -2972,9 +2957,6 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte } else { if (GL_SUPPORT(EXT_SECONDARY_COLOR)) { - - glDisableClientState(GL_SECONDARY_COLOR_ARRAY_EXT); - checkGLcall("glDisableClientState(GL_SECONDARY_COLOR_ARRAY_EXT)"); GL_EXTCALL(glSecondaryColor3fEXT)(0, 0, 0); checkGLcall("glSecondaryColor3fEXT(0, 0, 0)"); } else { @@ -3004,14 +2986,10 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte if (coordIdx >= MAX_TEXTURES) { VTRACE(("tex: %d - Skip tex coords, as being system generated\n", textureNo)); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); - } else if (sd->u.s.texCoords[coordIdx].lpData == NULL && sd->u.s.texCoords[coordIdx].VBO == 0) { VTRACE(("Bound texture but no texture coordinates supplied, so skipping\n")); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1)); - } else { TRACE("Setting up texture %u, idx %d, cordindx %u, data %p\n", textureNo, mapped_stage, coordIdx, sd->u.s.texCoords[coordIdx].lpData); @@ -3029,16 +3007,12 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte glEnableClientState(GL_TEXTURE_COORD_ARRAY); } } else if (!GL_SUPPORT(NV_REGISTER_COMBINERS)) { - GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + textureNo)); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); } } if (GL_SUPPORT(NV_REGISTER_COMBINERS)) { /* The number of the mapped stages increases monotonically, so it's fine to use the last used one */ for (textureNo = mapped_stage + 1; textureNo < GL_LIMITS(textures); ++textureNo) { - GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + textureNo)); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + textureNo, 0, 0, 0, 1)); } }
1
0
0
0
H. Verbeet : wined3d: Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: f8714d771a7fddfc30b8d9c64855aefcd6abcc27 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f8714d771a7fddfc30b8d9c64…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Wed May 9 19:07:33 2007 +0200 wined3d: Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well. --- dlls/wined3d/state.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index d828fcc..281f8bb 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -2538,6 +2538,8 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) { } if (GL_SUPPORT(ARB_VERTEX_BLEND)) { glDisableClientState(GL_WEIGHT_ARRAY_ARB); + } else if (GL_SUPPORT(EXT_VERTEX_WEIGHTING)) { + glDisableClientState(GL_VERTEX_WEIGHT_ARRAY_EXT); } for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) { GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx));
1
0
0
0
Andrew Talbot : mlang: Exclude unused headers.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: 303aeee4cb159366bb15ff1fef8afc710ac7f22b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=303aeee4cb159366bb15ff1fe…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed May 9 20:33:44 2007 +0100 mlang: Exclude unused headers. --- dlls/mlang/mlang.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c index 8c20bc4..8133744 100644 --- a/dlls/mlang/mlang.c +++ b/dlls/mlang/mlang.c @@ -31,12 +31,9 @@ #include "winbase.h" #include "wingdi.h" #include "winuser.h" -#include "winreg.h" #include "ole2.h" #include "mlang.h" -#include "uuids.h" - #include "wine/unicode.h" #include "wine/debug.h"
1
0
0
0
Andrew Talbot : msacm32: Exclude unused headers.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: a0436e828b70f237ed99b7d5446049d9f70e17e1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a0436e828b70f237ed99b7d54…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed May 9 20:33:47 2007 +0100 msacm32: Exclude unused headers. --- dlls/msacm32/driver.c | 2 -- dlls/msacm32/msacm32_main.c | 1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dlls/msacm32/driver.c b/dlls/msacm32/driver.c index 0a1cba6..086eef2 100644 --- a/dlls/msacm32/driver.c +++ b/dlls/msacm32/driver.c @@ -29,11 +29,9 @@ #include "windef.h" #include "winbase.h" -#include "winerror.h" #include "wingdi.h" #include "winuser.h" #include "winnls.h" -#include "winreg.h" #include "mmsystem.h" #include "mmreg.h" #include "msacm.h" diff --git a/dlls/msacm32/msacm32_main.c b/dlls/msacm32/msacm32_main.c index cc08b85..d3160e3 100644 --- a/dlls/msacm32/msacm32_main.c +++ b/dlls/msacm32/msacm32_main.c @@ -25,7 +25,6 @@ #include "windef.h" #include "winbase.h" -#include "winerror.h" #include "wine/debug.h" #include "mmsystem.h" #define NOBITMAP
1
0
0
0
Andrew Talbot : mscms: Exclude unused headers.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: 5c4e38726cd46c26d740f9eccf78a7e13b7f445c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5c4e38726cd46c26d740f9ecc…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed May 9 20:33:50 2007 +0100 mscms: Exclude unused headers. --- dlls/mscms/icc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/dlls/mscms/icc.c b/dlls/mscms/icc.c index 715a8ed..e5d0ba8 100644 --- a/dlls/mscms/icc.c +++ b/dlls/mscms/icc.c @@ -24,10 +24,8 @@ #include "windef.h" #include "winbase.h" -#include "winnls.h" #include "wingdi.h" #include "winuser.h" -#include "winreg.h" #include "winternl.h" #include "icm.h"
1
0
0
0
Andrew Talbot : mapi32: Exclude unused header.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: f9f70984a5666003097a2b01dcefad02dd036f06 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f9f70984a5666003097a2b01d…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue May 8 23:13:16 2007 +0100 mapi32: Exclude unused header. --- dlls/mapi32/sendmail.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c index a92fe64..eb954a5 100644 --- a/dlls/mapi32/sendmail.c +++ b/dlls/mapi32/sendmail.c @@ -27,7 +27,6 @@ #include "windef.h" #include "winbase.h" #include "winerror.h" -#include "winnls.h" #include "objbase.h" #include "mapi.h" #include "winreg.h"
1
0
0
0
Andrew Talbot : mciwave: Exclude unused header.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: bf1c57de275e70177a65171f5876ee0e3eaf51ab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bf1c57de275e70177a65171f5…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue May 8 23:13:24 2007 +0100 mciwave: Exclude unused header. --- dlls/mciwave/mciwave.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c index 18c77fe..8d8fde3 100644 --- a/dlls/mciwave/mciwave.c +++ b/dlls/mciwave/mciwave.c @@ -22,7 +22,6 @@ #include <stdarg.h> -#include "winerror.h" #include "windef.h" #include "winbase.h" #include "wingdi.h"
1
0
0
0
Andrew Talbot : localspl: Exclude unused headers.
by Alexandre Julliard
10 May '07
10 May '07
Module: wine Branch: master Commit: dd1263aa485663464550ca98a8c0e3ef651e89da URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dd1263aa485663464550ca98a…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue May 8 23:13:09 2007 +0100 localspl: Exclude unused headers. --- dlls/localspl/localmon.c | 2 -- dlls/localspl/localspl_main.c | 6 ------ 2 files changed, 0 insertions(+), 8 deletions(-) diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c index fda2c91..57cdd7a 100644 --- a/dlls/localspl/localmon.c +++ b/dlls/localspl/localmon.c @@ -28,8 +28,6 @@ #include "wingdi.h" #include "winuser.h" #include "winreg.h" -#include "winver.h" -#include "winnls.h" #include "winspool.h" #include "ddk/winsplp.h" diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c index 9fd72e0..800d1c5 100644 --- a/dlls/localspl/localspl_main.c +++ b/dlls/localspl/localspl_main.c @@ -27,12 +27,6 @@ #include "winbase.h" #include "wingdi.h" #include "winuser.h" -#include "winreg.h" -#include "winver.h" -#include "winnls.h" - -#include "winspool.h" -#include "ddk/winsplp.h" #include "wine/debug.h" #include "localspl_private.h"
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
72
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Results per page:
10
25
50
100
200