patch for ogl-es branch for pure linux

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
proller
Posts: 2
Joined: Sat Mar 02, 2013 12:06 pm

patch for ogl-es branch for pure linux

Post by proller »

for https://irrlicht.svn.sourceforge.net/sv ... hes/ogl-es
works with odroid x2 with mali 400 gpu on ubuntu
maybe need more #idfef

Code: Select all

 
# svn diff
Index: gles2-ext.h
===================================================================
--- gles2-ext.h (revision 4462)
+++ gles2-ext.h (working copy)
@@ -2,6 +2,7 @@
 #define __gl2ext_h_
 
 /* $Revision: 19436 $ on $Date:: 2012-10-10 10:37:04 -0700 #$ */
+#include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -376,8 +377,15 @@
  * If any other extensions using these types are defined,
  * the typedefs must move out of this block and be shared.
  */
-typedef khronos_int64_t GLint64;
-typedef khronos_uint64_t GLuint64;
+//typedef khronos_int64_t GLint64;
+//typedef khronos_uint64_t GLuint64;
+
+typedef int64_t GLint64EXT;
+typedef uint64_t GLuint64EXT;
+
+typedef GLint64EXT  GLint64;
+typedef GLuint64EXT GLuint64;
+
 typedef struct __GLsync *GLsync;
 #endif
 
Index: Makefile
===================================================================
--- Makefile    (revision 4462)
+++ Makefile    (working copy)
@@ -35,9 +35,10 @@
 IRRPARTICLEOBJ = CParticleAnimatedMeshSceneNodeEmitter.o CParticleBoxEmitter.o CParticleCylinderEmitter.o CParticleMeshEmitter.o CParticlePointEmitter.o CParticleRingEmitter.o CParticleSphereEmitter.o CParticleAttractionAffector.o CParticleFadeOutAffector.o CParticleGravityAffector.o CParticleRotationAffector.o CParticleSystemSceneNode.o CParticleScaleAffector.o
 IRRANIMOBJ = CSceneNodeAnimatorCameraFPS.o CSceneNodeAnimatorCameraMaya.o CSceneNodeAnimatorCollisionResponse.o CSceneNodeAnimatorDelete.o CSceneNodeAnimatorFlyCircle.o CSceneNodeAnimatorFlyStraight.o CSceneNodeAnimatorFollowSpline.o CSceneNodeAnimatorRotation.o CSceneNodeAnimatorTexture.o
 IRRDRVROBJ = CNullDriver.o COpenGLDriver.o COpenGLNormalMapRenderer.o COpenGLParallaxMapRenderer.o COpenGLShaderMaterialRenderer.o COpenGLTexture.o COpenGLSLMaterialRenderer.o COpenGLExtensionHandler.o CD3D8Driver.o CD3D8NormalMapRenderer.o CD3D8ParallaxMapRenderer.o CD3D8ShaderMaterialRenderer.o CD3D8Texture.o CD3D9Driver.o CD3D9HLSLMaterialRenderer.o CD3D9NormalMapRenderer.o CD3D9ParallaxMapRenderer.o CD3D9ShaderMaterialRenderer.o CD3D9Texture.o COGLESDriver.o COGLESTexture.o COGLESExtensionHandler.o
+IRRDRVRGLES2OBJ = COGLES2Driver.o COGLES2ExtensionHandler.o COGLES2FixedPipelineRenderer.o COGLES2MaterialRenderer.o COGLES2NormalMapRenderer.o COGLES2ParallaxMapRenderer.o COGLES2Renderer2D.o COGLES2Texture.o
 IRRIMAGEOBJ = CColorConverter.o CImage.o CImageLoaderBMP.o CImageLoaderDDS.o CImageLoaderJPG.o CImageLoaderPCX.o CImageLoaderPNG.o CImageLoaderPSD.o CImageLoaderTGA.o CImageLoaderPPM.o CImageLoaderWAL.o CImageLoaderRGB.o \
        CImageWriterBMP.o CImageWriterJPG.o CImageWriterPCX.o CImageWriterPNG.o CImageWriterPPM.o CImageWriterPSD.o CImageWriterTGA.o
-IRRVIDEOOBJ = CVideoModeList.o CFPSCounter.o $(IRRDRVROBJ) $(IRRIMAGEOBJ)
+IRRVIDEOOBJ = CVideoModeList.o CFPSCounter.o $(IRRDRVROBJ) $(IRRDRVRGLES2OBJ) $(IRRIMAGEOBJ)
 IRRSWRENDEROBJ = CSoftwareDriver.o CSoftwareTexture.o CTRFlat.o CTRFlatWire.o CTRGouraud.o CTRGouraudWire.o CTRNormalMap.o CTRStencilShadow.o CTRTextureFlat.o CTRTextureFlatWire.o CTRTextureGouraud.o CTRTextureGouraudAdd.o CTRTextureGouraudNoZ.o CTRTextureGouraudWire.o CZBuffer.o CTRTextureGouraudVertexAlpha2.o CTRTextureGouraudNoZ2.o CTRTextureLightMap2_M2.o CTRTextureLightMap2_M4.o CTRTextureLightMap2_M1.o CSoftwareDriver2.o CSoftwareTexture2.o CTRTextureGouraud2.o CTRGouraud2.o CTRGouraudAlpha2.o CTRGouraudAlphaNoZ2.o CTRTextureDetailMap2.o CTRTextureGouraudAdd2.o CTRTextureGouraudAddNoZ2.o CTRTextureWire2.o CTRTextureLightMap2_Add.o CTRTextureLightMapGouraud2_M4.o IBurningShader.o CTRTextureBlend.o CTRTextureGouraudAlpha.o CTRTextureGouraudAlphaNoZ.o CDepthBuffer.o CBurningShader_Raster_Reference.o
 IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CWADReader.o CZipReader.o CPakReader.o CNPKReader.o CTarReader.o CMountPointReader.o irrXML.o CAttributes.o lzma/LzmaDec.o CAndroidAssetReader.o
 IRROTHEROBJ = CIrrDeviceSDL.o CIrrDeviceLinux.o CIrrDeviceConsole.o CIrrDeviceStub.o CIrrDeviceWin32.o CIrrDeviceFB.o CIrrDeviceAndroid.o CLogger.o COSOperator.o Irrlicht.o os.o
Index: CIrrDeviceLinux.cpp
===================================================================
--- CIrrDeviceLinux.cpp (revision 4462)
+++ CIrrDeviceLinux.cpp (working copy)
@@ -53,7 +53,7 @@
        {
         #ifdef _IRR_COMPILE_WITH_OPENGL_
                IVideoDriver* createOpenGLDriver(const irr::SIrrlichtCreationParameters& params,
-                                         io::IFileSystem* io, CIrrDeviceWin32* device);
+                                         io::IFileSystem* io, CIrrDeviceLinux* device);
         #endif
 
         #ifdef _IRR_COMPILE_WITH_OGLES1_
 
 
used config:
#define _IRR_COMPILE_WITH_OGLES2_
#define NO_IRR_COMPILE_WITH_OPENGL_
Post Reply