Skip to content

Commit 118065e

Browse files
azhirnovTheMostDiligent
authored andcommitted
OpenGL: added adapter type
1 parent c0c922b commit 118065e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ static void SetDefaultGraphicsAdapterInfo(GraphicsAdapterInfo& AdapterInfo)
111111
{
112112
AdapterInfo = {};
113113

114+
#if PLATFORM_ANDROID || PLATFORM_IOS
115+
AdapterInfo.Type = ADAPTER_TYPE_INTEGRATED;
116+
#else
117+
AdapterInfo.Type = ADAPTER_TYPE_UNKNOWN;
118+
#endif
119+
114120
AdapterInfo.NumQueues = 1;
115121

116122
AdapterInfo.Queues[0].QueueType = COMMAND_QUEUE_TYPE_GRAPHICS;

Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLESImpl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ RenderDeviceGLESImpl::RenderDeviceGLESImpl(IReferenceCounters* pRefCounter
3939
const SwapChainDesc* pSCDesc) :
4040
RenderDeviceGLImpl(pRefCounters, RawMemAllocator, pEngineFactory, InitAttribs, pSCDesc)
4141
{
42+
m_AdapterInfo.Type = ADAPTER_TYPE_INTEGRATED;
4243
}
4344

4445
IMPLEMENT_QUERY_INTERFACE(RenderDeviceGLESImpl, IID_RenderDeviceGLES, RenderDeviceGLImpl)

0 commit comments

Comments
 (0)