MCPcopy Create free account
hub / github.com/defold/defold / NullNewContext

Function NullNewContext

engine/graphics/src/null/graphics_null.cpp:139–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 static HContext NullNewContext(const ContextParams& params)
140 {
141 if (!g_NullContext)
142 {
143 g_NullContext = new NullContext(params);
144
145 if (NullInitialize((HContext) g_NullContext, params))
146 {
147 return (HContext) g_NullContext;
148 }
149
150 DeleteContext((HContext) g_NullContext);
151 }
152 return 0x0;
153 }
154
155 static bool NullIsSupported()
156 {

Callers

nothing calls this directly

Calls 2

NullInitializeFunction · 0.85
DeleteContextFunction · 0.50

Tested by

no test coverage detected