mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-28 16:17:09 +08:00
use REQMASK_JOINLAYERFIRST to check whether need call JoinLayer first
This commit is contained in:
+4
-1
@@ -176,11 +176,12 @@ int GUIAPI ClientRequestEx2 (const REQUEST* request,
|
||||
if (mgIsServer)
|
||||
return -1;
|
||||
|
||||
/*
|
||||
#ifdef _MGGAL_MLSHADOW
|
||||
if ((request->id != REQID_MLSHADOW_CLIREQ)
|
||||
&& (__mg_client_id == 0 && request->id != REQID_JOINLAYER)) {
|
||||
#elif defined(_MGGAL_NEXUS)
|
||||
if ((request->id != REQID_NEXUS_CLIENT_GET_SURFACE)
|
||||
if ((request->id != REQID_NEXUS_HWSURFACE)
|
||||
&& (__mg_client_id == 0 && request->id != REQID_JOINLAYER)) {
|
||||
#elif defined(_MGSCHEMA_COMPOSITING)
|
||||
if (__mg_client_id == 0 && request->id != REQID_JOINLAYER &&
|
||||
@@ -188,6 +189,8 @@ int GUIAPI ClientRequestEx2 (const REQUEST* request,
|
||||
#else
|
||||
if (__mg_client_id == 0 && request->id != REQID_JOINLAYER) {
|
||||
#endif
|
||||
*/
|
||||
if (__mg_client_id == 0 && (request->id & REQMASK_JOINLAYERFIRST)) {
|
||||
_ERR_PRINTF ("CLIENT: please call JoinLayer first.\n");
|
||||
exit (255);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user