equal
deleted
inserted
replaced
1 /* Copyright (c) 2009 The Khronos Group Inc. |
1 /* Copyright (c) 2009-2010 The Khronos Group Inc. |
2 * |
2 * |
3 * Permission is hereby granted, free of charge, to any person obtaining a |
3 * Permission is hereby granted, free of charge, to any person obtaining a |
4 * copy of this software and/or associated documentation files (the |
4 * copy of this software and/or associated documentation files (the |
5 * "Materials"), to deal in the Materials without restriction, including |
5 * "Materials"), to deal in the Materials without restriction, including |
6 * without limitation the rights to use, copy, modify, merge, publish, |
6 * without limitation the rights to use, copy, modify, merge, publish, |
139 OWF_API_CALL WFC_ELEMENT* |
139 OWF_API_CALL WFC_ELEMENT* |
140 WFC_Element_Create(WFC_CONTEXT* context) |
140 WFC_Element_Create(WFC_CONTEXT* context) |
141 { |
141 { |
142 static WFCint nextElementHandle = FIRST_ELEMENT_HANDLE; |
142 static WFCint nextElementHandle = FIRST_ELEMENT_HANDLE; |
143 WFC_ELEMENT* element; |
143 WFC_ELEMENT* element; |
|
144 |
|
145 OWF_ASSERT(context); |
144 |
146 |
145 element = (WFC_ELEMENT*)OWF_Pool_GetObject(context->elementPool); |
147 element = (WFC_ELEMENT*)OWF_Pool_GetObject(context->elementPool); |
146 |
148 |
147 if (element) |
149 if (element) |
148 { |
150 { |