Skip to content

Commit

Permalink
ecere: Excluding OpenGL dependency for installer configuration
Browse files Browse the repository at this point in the history
- No OpenGL / Shader support for ECERE_ONEDRIVER
  • Loading branch information
jerstlouis committed Aug 4, 2016
1 parent 4f84a61 commit 3d0fe7a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions ecere/ecere.epj
Expand Up @@ -1248,6 +1248,12 @@ if distributed with the Ecere SDK Windows installer.
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
Expand All @@ -1274,6 +1280,12 @@ if distributed with the Ecere SDK Windows installer.
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion ecere/src/gfx/Display.ec
Expand Up @@ -1281,7 +1281,7 @@ public:
property bool useSharedMemory { set { useSharedMemory = value; } get { return useSharedMemory; } };
property void * systemWindow { get { return window; } };
property DisplaySystem displaySystem { get { return displaySystem; } };
#ifndef ECERE_VANILLA
#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
property GLCapabilities glCapabilities
{
get { return ((OGLDisplay)driverData).capabilities; }
Expand Down
2 changes: 1 addition & 1 deletion ecere/src/gfx/drivers/LFBDisplayDriver.ec
Expand Up @@ -35,7 +35,7 @@ public class Font : struct { }
import "lfbBlit"
import "lfbConvert"

#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA) && defined(__WIN32__)
#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER) && defined(__WIN32__)
import "OpenGLDisplayDriver"

#if !defined(_GLES) && !defined(ECERE_STATIC)
Expand Down
6 changes: 3 additions & 3 deletions ecere/src/gfx/fontRendering.ec
Expand Up @@ -805,18 +805,16 @@ public class Font : struct

~Font()
{
#if !defined(ECERE_NOTRUETYPE)
int entry;

#if !defined(ECERE_NOTRUETYPE)
GlyphPack pack;
while((pack = (GlyphPack)glyphPacks.root))
{
glyphPacks.Remove(pack);
delete pack;
}
#endif

#if !defined(ECERE_NOTRUETYPE)
for(entry = 0; entry<MAX_FONT_LINK_ENTRIES; entry++)
{
FontEntry fontEntry = fontEntries[entry];
Expand Down Expand Up @@ -854,6 +852,7 @@ public class Font : struct
bool LoadEntry(FaceInfo info)
{
bool result = false;
#if !defined(ECERE_NOTRUETYPE)
if(numEntries < MAX_FONT_LINK_ENTRIES)
{
FontEntry fontEntry = FontEntry::Load(info);
Expand Down Expand Up @@ -889,6 +888,7 @@ public class Font : struct
result = true;
}
}
#endif
return result;
}

Expand Down

0 comments on commit 3d0fe7a

Please sign in to comment.