r731 Compile errors

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

r731 Compile errors

Post by Enjay »

Looking at it, I don't *think* this has anything to do with MS SDKs because it all seems to relate directly to the model code which is, of course, what changed in this revision.

Code: Select all

4>gl_models_md3.cpp
>.\src\gl\models\gl_models_md3.cpp(267) : error C2039: 'ValidateTexture' : is not a member of 'FGLTexture'
>        src\gl/textures/gl_material.h(80) : see declaration of 'FGLTexture'
>.\src\gl\models\gl_models_md3.cpp(267) : error C3861: 'ValidateTexture': identifier not found
>.\src\gl\models\gl_models_md3.cpp(269) : error C2660: 'FGLTexture::Bind' : function does not take 3 arguments
>.\src\gl\models\gl_models_md3.cpp(292) : error C2039: 'ValidateTexture' : is not a member of 'FGLTexture'
>        src\gl/textures/gl_material.h(80) : see declaration of 'FGLTexture'
>.\src\gl\models\gl_models_md3.cpp(292) : error C3861: 'ValidateTexture': identifier not found
>.\src\gl\models\gl_models_md3.cpp(294) : error C2660: 'FGLTexture::Bind' : function does not take 3 arguments
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: r731 Compile errors

Post by Gez »

It was backported from something that is basically r127 of GZDoom, with a few bug fixes. Given all the shuffling of stuff around, I'm not surprised.

For instance, ValidateTexture() was moved to FMaterial from FGLTexture in r474.

As an experiment, I just replaced lines such as these:

Code: Select all

		FGLTexture * tex = FGLTexture::ValidateTexture(surfaceSkin);

		tex->Bind(cm, 0, translation);
with lines like this:

Code: Select all

		FMaterial * mat = FMaterial::ValidateTexture(surfaceSkin);

		mat->Bind(cm, 0, translation);
And now it compiles without complaining.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: r731 Compile errors

Post by Graf Zahl »

Damn, that happens when you merge in stuff 1 minute before going to bed... :?
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: r731 Compile errors

Post by Enjay »

r732 compiled no problem. :)
Locked

Return to “Closed Bugs”