diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2018-06-22 13:09:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-22 13:09:01 -0400 |
| commit | d0c9571be3a2167a9f019310aca8f7cd326972c0 (patch) | |
| tree | 52aa2f14ec2c9d8d42bc6fcbd381ed9799c19533 /tools/render-test/surface.cpp | |
| parent | e66d66b88e1c6ef8499708952fcbe3ba873f6e4c (diff) | |
Expose macros/functionality for defining interfaces (#604)
* Added Result definitions to the slang.h
* Removed slang-result.h and added slang-com-helper.h
* Move slang-com-ptr.h to be publically available.
* Add SLANG_IUNKNOWN macros to simplify implementing interfaces.
Use the SLANG_IUNKNOWN macros to in slang.c
* Removed slang-defines.h added outstanding defines to slang.h
Diffstat (limited to 'tools/render-test/surface.cpp')
| -rw-r--r-- | tools/render-test/surface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/render-test/surface.cpp b/tools/render-test/surface.cpp index 4d761389a..eabe555c3 100644 --- a/tools/render-test/surface.cpp +++ b/tools/render-test/surface.cpp @@ -1,4 +1,4 @@ -// surface.cpp +// surface.cpp #include "surface.h" #include <stdlib.h> @@ -46,7 +46,7 @@ Slang::Result MallocSurfaceAllocator::allocate(int width, int height, Format for uint8_t* data = (uint8_t*)::malloc(totalSize); if (!data) { - return SLANG_E_MEM_OUT_OF_MEMORY; + return SLANG_E_OUT_OF_MEMORY; } surface.m_data = data; |
