Skip to content

Commit b25585d

Browse files
authored
Merge branch 'ocornut:master' into master
2 parents c93057d + 21d3299 commit b25585d

31 files changed

Lines changed: 138 additions & 81 deletions

backends/imgui_impl_allegro5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ void ImGui_ImplAllegro5_SetDisplay(ALLEGRO_DISPLAY* display)
524524
if (bd->VertexDecl)
525525
{
526526
al_destroy_vertex_decl(bd->VertexDecl);
527-
bd->VertexDecl = NULL;
527+
bd->VertexDecl = nullptr;
528528
}
529529

530530
if (bd->Display && !bd->VertexDecl)

backends/imgui_impl_allegro5.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ IMGUI_IMPL_API void ImGui_ImplAllegro5_SetDisplay(ALLEGRO_DISPLAY* display);
3838
IMGUI_IMPL_API bool ImGui_ImplAllegro5_CreateDeviceObjects();
3939
IMGUI_IMPL_API void ImGui_ImplAllegro5_InvalidateDeviceObjects();
4040

41-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
41+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
4242
IMGUI_IMPL_API void ImGui_ImplAllegro5_UpdateTexture(ImTextureData* tex);
4343

4444
#endif // #ifndef IMGUI_DISABLE

backends/imgui_impl_dx10.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ IMGUI_IMPL_API void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data);
3232
IMGUI_IMPL_API bool ImGui_ImplDX10_CreateDeviceObjects();
3333
IMGUI_IMPL_API void ImGui_ImplDX10_InvalidateDeviceObjects();
3434

35-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
35+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
3636
IMGUI_IMPL_API void ImGui_ImplDX10_UpdateTexture(ImTextureData* tex);
3737

3838
// [BETA] Selected render state data shared with callbacks.

backends/imgui_impl_dx11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ IMGUI_IMPL_API void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data);
3434
IMGUI_IMPL_API bool ImGui_ImplDX11_CreateDeviceObjects();
3535
IMGUI_IMPL_API void ImGui_ImplDX11_InvalidateDeviceObjects();
3636

37-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
37+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
3838
IMGUI_IMPL_API void ImGui_ImplDX11_UpdateTexture(ImTextureData* tex);
3939

4040
// [BETA] Selected render state data shared with callbacks.

backends/imgui_impl_dx12.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ bool ImGui_ImplDX12_Init(ImGui_ImplDX12_InitInfo* init_info)
875875
init_info = &bd->InitInfo;
876876

877877
bd->pd3dDevice = init_info->Device;
878-
IM_ASSERT(init_info->CommandQueue != NULL);
878+
IM_ASSERT(init_info->CommandQueue != nullptr);
879879
bd->pCommandQueue = init_info->CommandQueue;
880880
bd->RTVFormat = init_info->RTVFormat;
881881
bd->DSVFormat = init_info->DSVFormat;

backends/imgui_impl_dx12.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ IMGUI_IMPL_API bool ImGui_ImplDX12_Init(ID3D12Device* device, int num_frames
6464
IMGUI_IMPL_API bool ImGui_ImplDX12_CreateDeviceObjects();
6565
IMGUI_IMPL_API void ImGui_ImplDX12_InvalidateDeviceObjects();
6666

67-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
67+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
6868
IMGUI_IMPL_API void ImGui_ImplDX12_UpdateTexture(ImTextureData* tex);
6969

7070
// [BETA] Selected render state data shared with callbacks.

backends/imgui_impl_dx9.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IMGUI_IMPL_API void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data);
3131
IMGUI_IMPL_API bool ImGui_ImplDX9_CreateDeviceObjects();
3232
IMGUI_IMPL_API void ImGui_ImplDX9_InvalidateDeviceObjects();
3333

34-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
34+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
3535
IMGUI_IMPL_API void ImGui_ImplDX9_UpdateTexture(ImTextureData* tex);
3636

3737
#endif // #ifndef IMGUI_DISABLE

backends/imgui_impl_glfw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ static bool ImGui_ImplGlfw_IsWayland()
251251
return glfwGetPlatform() == GLFW_PLATFORM_WAYLAND;
252252
#else
253253
const char* version = glfwGetVersionString();
254-
if (strstr(version, "Wayland") == NULL) // e.g. Ubuntu 22.04 ships with GLFW 3.3.6 compiled without Wayland
254+
if (strstr(version, "Wayland") == nullptr) // e.g. Ubuntu 22.04 ships with GLFW 3.3.6 compiled without Wayland
255255
return false;
256256
#ifdef GLFW_EXPOSE_NATIVE_X11
257-
if (glfwGetX11Display() != NULL)
257+
if (glfwGetX11Display() != nullptr)
258258
return false;
259259
#endif
260260
return true;

backends/imgui_impl_metal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* drawData,
3939
IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(id<MTLDevice> device);
4040
IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects();
4141

42-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
42+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
4343
IMGUI_IMPL_API void ImGui_ImplMetal_UpdateTexture(ImTextureData* tex);
4444

4545
#endif
@@ -67,7 +67,7 @@ IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data,
6767
IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(MTL::Device* device);
6868
IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects();
6969

70-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
70+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
7171
IMGUI_IMPL_API void ImGui_ImplMetal_UpdateTexture(ImTextureData* tex);
7272

7373
#endif

backends/imgui_impl_opengl2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ IMGUI_IMPL_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data);
3737
IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateDeviceObjects();
3838
IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyDeviceObjects();
3939

40-
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
40+
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = nullptr to handle this manually.
4141
IMGUI_IMPL_API void ImGui_ImplOpenGL2_UpdateTexture(ImTextureData* tex);
4242

4343
#endif // #ifndef IMGUI_DISABLE

0 commit comments

Comments
 (0)